curl command to php code generator