Repository: postmanlabs/postman-code-generators
Pull request #29 (2019-06-18 11:52:44)

Added codegen php-pecl-http


Patch:
diff --git a/codegens/php-pecl-http/.editorconfig b/codegens/php-pecl-http/.editorconfig
new file mode 100644
index 0000000..886d83b
--- /dev/null
+++ b/codegens/php-pecl-http/.editorconfig
@@ -0,0 +1,14 @@
+# editorconfig.org
+root = true
+
+[*.js]
+indent_style = space
+indent_size = 4
+end_of_line = lf
+charset = utf-8
+max_length = 120
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.{json, yml}]
+indent_size = 2
diff --git a/codegens/php-pecl-http/.eslintrc b/codegens/php-pecl-http/.eslintrc
new file mode 100644
index 0000000..ef38eee
--- /dev/null
+++ b/codegens/php-pecl-http/.eslintrc
@@ -0,0 +1,360 @@
+{
+  "plugins": [
+    "jsdoc",
+    "security",
+    "lodash"
+  ],
+  "env": {
+    "node": true,
+    "es6": true
+  },
+  "rules": {
+    // Possible Errors
+    "for-direction": "error",
+    "getter-return": "error",
+    "no-await-in-loop": "error",
+    "no-compare-neg-zero": "error",
+    "no-cond-assign": "error",
+    "no-console": "off",
+    "no-constant-condition": "error",
+    "no-control-regex": "error",
+    "no-debugger": "error",
+    "no-dupe-args": "error",
+    "no-dupe-keys": "error",
+    "no-duplicate-case": "error",
+    "no-empty": "error",
+    "no-empty-character-class": "error",
+    "no-ex-assign": "error",
+    "no-extra-boolean-cast": "error",
+    "no-extra-parens": "off",
+    "no-extra-semi": "error",
+    "no-func-assign": "error",
+    "no-inner-declarations": "off",
+    "no-invalid-regexp": "error",
+    "no-irregular-whitespace": "error",
+    "no-obj-calls": "error",
+    "no-prototype-builtins": "off",
+    "no-regex-spaces": "error",
+    "no-sparse-arrays": "error",
+    "no-template-curly-in-string": "error",
+    "no-unexpected-multiline": "error",
+    "no-unreachable": "error",
+    "no-unsafe-finally": "error",
+    "no-unsafe-negation": "error",
+    "use-isnan": "error",
+    "valid-jsdoc": "off",
+    "valid-typeof": "error",
+
+    // Best Practices
+    "accessor-pairs": "error",
+    "array-callback-return": "off",
+    "block-scoped-var": "error",
+    "class-methods-use-this": "error",
+    "complexity": "off",
+    "consistent-return": "warn",
+    "curly": "error",
+    "default-case": "error",
+    "dot-location": ["error", "property"],
+    "dot-notation": "error",
+    "eqeqeq": "error",
+    "guard-for-in": "warn",
+    "no-alert": "error",
+    "no-caller": "error",
+    "no-case-declarations": "error",
+    "no-div-regex": "error",
+    "no-else-return": "error",
+    "no-empty-function": "error",
+    "no-empty-pattern": "error",
+    "no-eq-null": "error",
+    "no-eval": "error",
+    "no-extend-native": "error",
+    "no-extra-bind": "error",
+    "no-extra-label": "error",
+    "no-fallthrough": "error",
+    "no-floating-decimal": "error",
+    "no-global-assign": "error",
+    "no-implicit-coercion": "error",
+    "no-implicit-globals": "error",
+    "no-implied-eval": "error",
+    "no-invalid-this": "error",
+    "no-iterator": "error",
+    "no-labels": "error",
+    "no-lone-blocks": "error",
+    "no-loop-func": "error",
+    "no-magic-numbers": "off",
+    "no-multi-spaces": "error",
+    "no-multi-str": "error",
+    "no-new": "error",
+    "no-new-func": "error",
+    "no-new-wrappers": "error",
+    "no-octal": "error",
+    "no-octal-escape": "error",
+    "no-param-reassign": "off",
+    "no-proto": "error",
+    "no-redeclare": "error",
+    "no-restricted-properties": "error",
+    "no-return-assign": "error",
+    "no-return-await": "error",
+    "no-script-url": "error",
+    "no-self-assign": "error",
+    "no-self-compare": "error",
+    "no-sequences": "error",
+    "no-throw-literal": "error",
+    "no-unmodified-loop-condition": "error",
+    "no-unused-expressions": "off",
+    "no-unused-labels": "error",
+    "no-useless-call": "error",
+    "no-useless-concat": "error",
+    "no-useless-escape": "error",
+    "no-useless-return": "error",
+    "no-void": "error",
+    "no-warning-comments": "off",
+    "no-with": "error",
+    "prefer-promise-reject-errors": "error",
+    "radix": "off",
+    "require-await": "error",
+    "vars-on-top": "off",
+    "wrap-iife": "error",
+    "yoda": "error",
+
+    // Strict Mode
+    "strict": "off",
+
+    // Variables
+    "init-declarations": "off",
+    "no-catch-shadow": "error",
+    "no-delete-var": "error",
+    "no-label-var": "error",
+    "no-restricted-globals": "error",
+    "no-shadow": "off",
+    "no-shadow-restricted-names": "error",
+    "no-undef": "off",
+    "no-undef-init": "error",
+    "no-undefined": "off",
+    "no-unused-vars": "error",
+    "no-use-before-define": "error",
+
+    // Node.js and CommonJS
+    "callback-return": "error",
+    "global-require": "off",
+    "handle-callback-err": "error",
+    "no-buffer-constructor": "error",
+    "no-mixed-requires": "off",
+    "no-new-require": "off",
+    "no-path-concat": "error",
+    "no-process-env": "error",
+    "no-process-exit": "off",
+    "no-restricted-modules": "error",
+    "no-sync": "off",
+
+    // Stylistic Issues
+    "array-bracket-newline": "off",
+    "array-bracket-spacing": "off",
+    "array-element-newline": "off",
+    "block-spacing": "error",
+    "brace-style": [2, "stroustrup", { "allowSingleLine": true }],
+    "camelcase": "off",
+    "capitalized-comments": "off",
+    "comma-dangle": ["error", "never"],
+    "comma-spacing": [2, { "before": false, "after": true }],
+    "comma-style": ["error", "last"],
+    "computed-property-spacing": "error",
+    "consistent-this": "off",
+    "eol-last": "error",
+    "func-call-spacing": "error",
+    "func-name-matching": "off",
+    "func-names": "off",
+    "func-style": "off",
+    "id-blacklist": "error",
+    "id-length": "off",
+    "id-match": "error",
+    "indent": ["error", 4, {
+      "VariableDeclarator": { "var": 1, "let": 1, "const": 1 },
+      "SwitchCase": 1
+    }],
+    "jsx-quotes": ["error", "prefer-single"],
+    "key-spacing": "error",
+    "keyword-spacing": "error",
+    "line-comment-position": "off",
+    "linebreak-style": ["error", "unix"],
+    "lines-around-comment": ["error", {
+      "beforeBlockComment": true,
+      "afterBlockComment": false,
+      "beforeLineComment": false,
+      "afterLineComment": false,
+      "allowBlockStart": true,
+      "allowBlockEnd": false,
+      "allowObjectStart": true,
+      "allowObjectEnd": false,
+      "allowArrayStart": true,
+      "allowArrayEnd": false
+    }],
+    "max-depth": "error",
+    "max-len": ["error", {
+      "code": 120
+    }],
+    "max-lines": "off",
+    "max-nested-callbacks": "error",
+    "max-params": "off",
+    "max-statements": "off",
+    "max-statements-per-line": "off",
+    "multiline-ternary": "off",
+    "new-cap": "off",
+    "new-parens": "error",
+    "newline-per-chained-call": "off",
+    "no-array-constructor": "error",
+    "no-bitwise": "off",
+    "no-continue": "off",
+    "no-inline-comments": "off",
+    "no-lonely-if": "error",
+    "no-mixed-operators": "off",
+    "no-mixed-spaces-and-tabs": "error",
+    "no-multi-assign": "off",
+    "no-multiple-empty-lines": "error",
+    "no-negated-condition": "off",
+    "no-nested-ternary": "off",
+    "no-new-object": "error",
+    "no-plusplus": "off",
+    "no-restricted-syntax": "error",
+    "no-tabs": "error",
+    "no-ternary": "off",
+    "no-trailing-spaces": "error",
+    "no-underscore-dangle": "off",
+    "no-unneeded-ternary": "error",
+    "no-whitespace-before-property": "error",
+    "nonblock-statement-body-position": "error",
+    "object-curly-newline": "off",
+    "object-curly-spacing": "off",
+    "object-property-newline": "off",
+    "one-var": ["error", "always"],
+    "one-var-declaration-per-line": "error",
+    "operator-assignment": "error",
+    "operator-linebreak": ["error", "after"],
+    "padded-blocks": "off",
+    "padding-line-between-statements": "off",
+    "quote-props": "off",
+    "quotes": ["error", "single"],
+    "require-jsdoc": "warn",
+    "semi": "error",
+    "semi-spacing": "error",
+    "sort-keys": "off",
+    "sort-vars": "off",
+    "space-before-blocks": "error",
+    "space-before-function-paren": "error",
+    "space-in-parens": "error",
+    "space-infix-ops": "error",
+    "space-unary-ops": "error",
+    "spaced-comment": ["error", "always", {
+      "block": {
+        "exceptions": ["!"]
+      }
+    }],
+    "switch-colon-spacing": "error",
+    "template-tag-spacing": "error",
+    "unicode-bom": "error",
+    "wrap-regex": "error",
+
+    // ECMAScript 6
+    "arrow-body-style": ["error", "always"],
+    "arrow-parens": ["error", "always"],
+    "arrow-spacing": "error",
+    "constructor-super": "error",
+    "generator-star-spacing": "error",
+    "no-class-assign": "error",
+    "no-confusing-arrow": "error",
+    "no-const-assign": "error",
+    "no-dupe-class-members": "error",
+    "no-duplicate-imports": "error",
+    "no-new-symbol": "error",
+    "no-restricted-imports": "error",
+    "no-this-before-super": "error",
+    "no-useless-computed-key": "error",
+    "no-useless-constructor": "off",
+    "no-var": "off",
+    "object-shorthand": "off",
+    "prefer-arrow-callback": "off",
+    "prefer-const": "off",
+    "prefer-destructuring": "off",
+    "prefer-numeric-literals": "off",
+    "prefer-rest-params": "off",
+    "prefer-spread": "error",
+    "prefer-template": "off",
+    "require-yield": "error",
+    "rest-spread-spacing": "error",
+    "sort-imports": "off",
+    "symbol-description": "off",
+    "template-curly-spacing": "error",
+    "yield-star-spacing": "error",
+
+    // Lodash
+    "lodash/callback-binding": "error",
+    "lodash/collection-method-value": "warn",
+    "lodash/collection-return": "error",
+    "lodash/no-double-unwrap": "error",
+    "lodash/no-extra-args": "error",
+    "lodash/no-unbound-this": "error",
+    "lodash/unwrap": "error",
+
+    "lodash/chain-style": ["error", "as-needed"],
+    "lodash/chaining": ["error", "always", 3],
+    "lodash/consistent-compose": ["error", "flow"],
+    "lodash/identity-shorthand": ["error", "always"],
+    "lodash/import-scope": "off",
+    "lodash/matches-prop-shorthand": ["error", "always"],
+    "lodash/matches-shorthand": ["error", "always", 3],
+    "lodash/no-commit": "error",
+    "lodash/path-style": ["error", "as-needed"],
+    "lodash/prefer-compact": "error",
+    "lodash/prefer-filter": ["off", 3],
+    "lodash/prefer-flat-map": "error",
+    "lodash/prefer-invoke-map": "error",
+    "lodash/prefer-map": "error",
+    "lodash/prefer-reject": ["error", 3],
+    "lodash/prefer-thru": "error",
+    "lodash/prefer-wrapper-method": "error",
+    "lodash/preferred-alias": "off",
+    "lodash/prop-shorthand": ["error", "always"],
+
+    "lodash/prefer-constant": "off",
+    "lodash/prefer-get": ["warn", 4],
+    "lodash/prefer-includes": ["error", { "includeNative": true }],
+    "lodash/prefer-is-nil": "error",
+    "lodash/prefer-lodash-chain": "error",
+    "lodash/prefer-lodash-method": "off",
+    "lodash/prefer-lodash-typecheck": "off",
+    "lodash/prefer-matches": ["off", 3],
+    "lodash/prefer-noop": "off",
+    "lodash/prefer-over-quantifier": "warn",
+    "lodash/prefer-some": "off",
+    "lodash/prefer-startswith": "off",
+    "lodash/prefer-times": "off",
+
+    // JsDoc
+    "jsdoc/check-param-names": "error",
+    "jsdoc/check-tag-names": "off",
+    "jsdoc/check-types": "off",
+    "jsdoc/newline-after-description": "error",
+    "jsdoc/require-description-complete-sentence": "off",
+    "jsdoc/require-example": "off",
+    "jsdoc/require-hyphen-before-param-description": "off",
+    "jsdoc/require-param": "error",
+    "jsdoc/require-param-description": "off",
+    "jsdoc/require-param-type": "off",
+    "jsdoc/require-returns-description": "off",
+    "jsdoc/require-returns-type": "error",
+
+    // Security
+    "security/detect-unsafe-regex": "off",
+    "security/detect-buffer-noassert": "error",
+    "security/detect-child-process": "error",
+    "security/detect-disable-mustache-escape": "error",
+    "security/detect-eval-with-expression": "error",
+    "security/detect-no-csrf-before-method-override": "off",
+    "security/detect-non-literal-fs-filename": "off",
+    "security/detect-non-literal-regexp": "warn",
+    "security/detect-non-literal-require": "off",
+    "security/detect-object-injection": "off",
+    "security/detect-possible-timing-attacks": "error",
+    "security/detect-pseudoRandomBytes": "error"
+  }
+}
diff --git a/codegens/php-pecl-http/.gitignore b/codegens/php-pecl-http/.gitignore
new file mode 100644
index 0000000..0b735f7
--- /dev/null
+++ b/codegens/php-pecl-http/.gitignore
@@ -0,0 +1,66 @@
+.DS_Store
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Prevent IDE stuff
+.idea
+.vscode
+*.sublime-*
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+.coverage
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Typescript v1 declaration files
+typings/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+
+out/
diff --git a/codegens/php-pecl-http/.jsdoc-config.json b/codegens/php-pecl-http/.jsdoc-config.json
new file mode 100644
index 0000000..90e6d5d
--- /dev/null
+++ b/codegens/php-pecl-http/.jsdoc-config.json
@@ -0,0 +1,34 @@
+{
+  "tags": {
+    "allowUnknownTags": true,
+    "dictionaries": ["jsdoc", "closure"]
+  },
+  "source": {
+    "include": [ ],
+    "includePattern": ".+\\.js(doc)?$",
+    "excludePattern": "(^|\\/|\\\\)_"
+  },
+
+  "plugins": [
+    "plugins/markdown"
+  ],
+
+  "templates": {
+    "cleverLinks": false,
+    "monospaceLinks": false,
+    "highlightTutorialCode" : true
+  },
+
+  "opts": {
+    "template": "./node_modules/postman-jsdoc-theme",
+    "encoding": "utf8",
+    "destination": "./out/docs",
+    "recurse": true,
+    "readme": "README.md"
+  },
+
+  "markdown": {
+    "parser": "gfm",
+    "hardwrap": false
+  }
+}
diff --git a/codegens/php-pecl-http/.npmignore b/codegens/php-pecl-http/.npmignore
new file mode 100644
index 0000000..17156c3
--- /dev/null
+++ b/codegens/php-pecl-http/.npmignore
@@ -0,0 +1,74 @@
+### NPM Specific: Disregard recursive project files
+### ===============================================
+/.editorconfig
+/.gitmodules
+/test
+
+### Borrowed from .gitignore
+### ========================
+
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Prevent IDE stuff
+.idea
+.vscode
+*.sublime-*
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+.coverage
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Typescript v1 declaration files
+typings/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+
+out/
diff --git a/codegens/php-pecl-http/README.md b/codegens/php-pecl-http/README.md
new file mode 100644
index 0000000..f3ab3f0
--- /dev/null
+++ b/codegens/php-pecl-http/README.md
@@ -0,0 +1,46 @@
+# codegen-php-pecl-http
+
+>Converts Postman-SDK Request into code snippet for PHP-pecl-http
+
+#### Prerequisites
+To run Code-Gen, ensure that you have NodeJS >= v8. A copy of the NodeJS installable can be downloaded from https://nodejs.org/en/download/package-manager.
+
+## Using the Module
+The module will expose an object which will have property `convert` which is the function for converting the Postman-SDK request to php-pecl-http code snippet.
+
+### convert function
+Convert function takes three parameters
+
+* `request` - Postman-SDK Request Object
+
+* `options` - options is an object which hsa following properties
+    * `indentType` - String denoting type of indentation for code snippet. eg: 'space', 'tab'
+    * `indentCount` - Integer denoting count of indentation required
+    * `trimRequestBody` - Boolean denoting whether to trim request body fields
+    * `followRedirect` - Boolean denoting whether to redirect a request
+    * `requestTimeout` - Integer denoting time after which the request will bail out in milli-seconds
+
+* `callback` - callback function with first parameter as error and second parameter as string for code snippet
+
+##### Example:
+```js
+var request = new sdk.Request('www.google.com'),  //using postman sdk to create request  
+    options = {
+        indentCount: 3,
+        indentType: 'space',
+        requestTimeout: 200,
+        trimRequestBody: true,
+        followRedirect: true
+    };
+convert(request, options, function(error, snippet) {
+    if (error) {
+        //  handle error
+    }
+    //  handle snippet
+});
+```
+### Guidelines for using generated snippet
+
+* Since Postman-SDK Request object doesn't provide complete path of the file, it needs to be manually inserted in case of uploading a file.
+
+* This module doesn't support cookies.
\ No newline at end of file
diff --git a/codegens/php-pecl-http/index.js b/codegens/php-pecl-http/index.js
new file mode 100644
index 0000000..bb0a047
--- /dev/null
+++ b/codegens/php-pecl-http/index.js
@@ -0,0 +1,1 @@
+module.exports = require('./lib');
diff --git a/codegens/php-pecl-http/lib/index.js b/codegens/php-pecl-http/lib/index.js
new file mode 100644
index 0000000..81cb1ff
--- /dev/null
+++ b/codegens/php-pecl-http/lib/index.js
@@ -0,0 +1,4 @@
+module.exports = {
+    convert: require('./phpPecl').convert,
+    getOptions: require('./phpPecl').getOptions
+};
diff --git a/codegens/php-pecl-http/lib/lodash.js b/codegens/php-pecl-http/lib/lodash.js
new file mode 100644
index 0000000..c50796d
--- /dev/null
+++ b/codegens/php-pecl-http/lib/lodash.js
@@ -0,0 +1,456 @@
+/* istanbul ignore next */
+module.exports = {
+
+    /**
+       * Checks if `value` is an empty object, array or string.
+       *
+       * Objects are considered empty if they have no own enumerable string keyed
+       * properties.
+       *
+       * Values such as strings, arrays are considered empty if they have a `length` of `0`.
+       *
+       * @param {*} value The value to check.
+       * @returns {boolean} Returns `true` if `value` is empty, else `false`.
+       * @example
+       *
+       * isEmpty(null)
+       * // => true
+       *
+       * isEmpty(true)
+       * // => true
+       *
+       * isEmpty(1)
+       * // => true
+       *
+       * isEmpty([1, 2, 3])
+       * // => false
+       *
+       * isEmpty('abc')
+       * // => false
+       *
+       * isEmpty({ 'a': 1 })
+       * // => false
+       */
+    isEmpty: function (value) {
+        // eslint-disable-next-line lodash/prefer-is-nil
+        if (value === null || value === undefined) {
+            return true;
+        }
+        if (Array.isArray(value) || typeof value === 'string' || typeof value.splice === 'function') {
+            return !value.length;
+        }
+
+        for (const key in value) {
+            if (Object.prototype.hasOwnProperty.call(value, key)) {
+                return false;
+            }
+        }
+
+        return true;
+    },
+
+    /**
+       * Checks if `value` is `undefined`.
+       *
+       * @param {*} value The value to check.
+       * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
+       * @example
+       *
+       * isUndefined(void 0)
+       * // => true
+       *
+       * isUndefined(null)
+       * // => false
+       */
+    isUndefined: function (value) {
+        return value === undefined;
+    },
+
+    /**
+       * Checks if `func` is classified as a `Function` object.
+       *
+       * @param {*} func The value to check.
+       * @returns {boolean} Returns `true` if `func` is a function, else `false`.
+       * @example
+       *
+       * isFunction(self.isEmpty)
+       * // => true
+       *
+       * isFunction(/abc/)
+       * // => false
+       */
+    isFunction: function (func) {
+        return typeof func === 'function';
+    },
+
+    /**
+       * Converts the first character of `string` to upper case and the remaining
+       * to lower case.
+       *
+       * @param {string} [string=''] The string to capitalize.
+       * @returns {string} Returns the capitalized string.
+       * @example
+       *
+       * capitalize('FRED')
+       * // => 'Fred'
+       *
+       * capitalize('john')
+       * // => 'John'
+       */
+
+    capitalize: function (string) {
+        return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
+    },
+
+    /**
+       * Reduces `array` to a value which is the accumulated result of running
+       * each element in `array` thru `iteratee`, where each successive
+       * invocation is supplied the return value of the previous. If `accumulator`
+       * is not given, the first element of `array` is used as the initial
+       * value. The iteratee is invoked with four arguments:
+       * (accumulator, value, index|key, array).
+       *
+       * @param {Array} array The Array to iterate over.
+       * @param {Function} iteratee The function invoked per iteration.
+       * @param {*} [accumulator] The initial value.
+       * @returns {*} Returns the accumulated value.
+       * @example
+       *
+       * reduce([1, 2], (sum, n) => sum + n, 0)
+       * // => 3
+       *
+       */
+    reduce: function (array, iteratee, accumulator) {
+        return array.reduce(iteratee, accumulator);
+    },
+
+    /**
+       * Iterates over elements of `array`, returning an array of all elements
+       * `predicate` returns truthy for. The predicate is invoked with three
+       * arguments: (value, index, array).
+       *
+       * @param {Array} array The array to iterate over.
+       * @param {Function|object} predicate The function/object invoked per iteration.
+       * @returns {Array} Returns the new filtered array.
+       * @example
+       *
+       * const users = [
+          *   { 'user': 'barney', 'active': true },
+          *   { 'user': 'fred',   'active': false }
+          * ]
+          *
+          * filter(users, ({ active }) => active)
+          * // => object for ['barney']
+          */
+    filter: function (array, predicate) {
+        if (typeof predicate === 'function') {
+            return array.filter(predicate);
+        }
+        var key = Object.keys(predicate),
+            val = predicate[key],
+            res = [];
+        array.forEach(function (item) {
+            if (item[key] && item[key] === val) {
+                res.push(item);
+            }
+        });
+        return res;
+    },
+
+    /**
+       * The opposite of `filter` this method returns the elements of `array`
+       * that `predicate` does **not** return truthy for.
+       *
+       * @param {Array} array collection to iterate over.
+       * @param {String} predicate The String that needs to have truthy value, invoked per iteration.
+       * @returns {Array} Returns the new filtered array.
+       * @example
+       *
+       * const users = [
+          *   { 'user': 'barney', 'active': true },
+          *   { 'user': 'fred',   'active': false }
+          * ]
+          *
+          * reject(users, 'active')
+          * // => object for ['fred']
+          */
+    reject: function (array, predicate) {
+        var res = [];
+        array.forEach((object) => {
+            if (!object[predicate]) {
+                res.push(object);
+            }
+        });
+        return res;
+    },
+
+    /**
+       * Creates an array of values by running each element of `array` thru `iteratee`.
+       * The iteratee is invoked with three arguments: (value, index, array).
+       *
+       * @param {Array} array The array to iterate over.
+       * @param {Function} iteratee The function invoked per iteration.
+       * @returns {Array} Returns the new mapped array.
+       * @example
+       *
+       * function square(n) {
+          *   return n * n
+          * }
+          *
+          * map([4, 8], square)
+          * // => [16, 64]
+          */
+    map: function (array, iteratee) {
+        return array.map(iteratee);
+    },
+
+    /**
+       * Iterates over elements of `collection` and invokes `iteratee` for each element.
+       * The iteratee is invoked with three arguments: (value, index|key, collection).
+       *
+       * @param {Array|Object} collection The collection to iterate over.
+       * @param {Function} iteratee The function invoked per iteration.
+       * @returns {Array|Object} Returns `collection`.
+       * @example
+       *
+       * forEach([1, 2], value => console.log(value))
+       * // => Logs `1` then `2`.
+       *
+       * forEach({ 'a': 1, 'b': 2 }, (value, key) => console.log(key))
+       * // => Logs 'a' then 'b'
+       */
+
+    forEach: function (collection, iteratee) {
+        if (collection === null) {
+            return null;
+        }
+
+        if (Array.isArray(collection)) {
+            return collection.forEach(iteratee);
+        }
+        const iterable = Object(collection),
+            props = Object.keys(collection);
+        var index = -1,
+            key, i;
+
+        for (i = 0; i < props.length; i++) {
+            key = props[++index];
+            iteratee(iterable[key], key, iterable);
+        }
+        return collection;
+    },
+
+    /**
+       * Checks if `value` is in `collection`. If `collection` is a string, it's
+       * checked for a substring of `value`, otherwise it checks if the `value` is present
+       * as a key in a `collection` object.
+       *
+       * @param {Array|Object|string} collection The collection to inspect.
+       * @param {*} value The value to search for.
+       * @returns {boolean} Returns `true` if `value` is found, else `false`.
+       * @example
+       *
+       * _.includes([1, 2, 3], 1);
+       * // => true
+       *
+       * _.includes({ 'a': 1, 'b': 2 }, 1);
+       * // => true
+       *
+       * _.includes('abcd', 'bc');
+       * // => true
+       */
+    includes: function (collection, value) {
+        if (Array.isArray(collection) || typeof collection === 'string') {
+            return collection.includes(value);
+        }
+        for (var key in collection) {
+            if (collection.hasOwnProperty(key)) {
+                if (collection[key] === value) {
+                    return true;
+                }
+            }
+        }
+        return false;
+    },
+
+    /**
+       * Gets the size of `collection` by returning its length for array and strings.
+       * For objects it returns the number of enumerable string keyed
+       * properties.
+       *
+       * @param {Array|Object|string} collection The collection to inspect.
+       * @returns {number} Returns the collection size.
+       * @example
+       *
+       * size([1, 2, 3])
+       * // => 3
+       *
+       * size({ 'a': 1, 'b': 2 })
+       * // => 2
+       *
+       * size('pebbles')
+       * // => 7
+       */
+    size: function (collection) {
+        // eslint-disable-next-line lodash/prefer-is-nil
+        if (collection === null || collection === undefined) {
+            return 0;
+        }
+        if (Array.isArray(collection) || typeof collection === 'string') {
+            return collection.length;
+        }
+
+        return Object.keys(collection).length;
+    },
+
+    /**
+       * Converts all elements in `array` into a string separated by `separator`.
+       *
+       * @param {Array} array The array to convert.
+       * @param {string} [separator=','] The element separator.
+       * @returns {string} Returns the joined string.
+       * @example
+       *
+       * _.join(['a', 'b', 'c'], '~');
+       * // => 'a~b~c'
+       */
+    join: function (array, separator) {
+        if (array === null) {
+            return '';
+        }
+        return array.join(separator);
+    },
+
+    /**
+       * Removes trailing whitespace or specified characters from `string`.
+       *
+       * @param {string} [string=''] The string to trim.
+       * @param {string} [chars=whitespace] The characters to trim.
+       * @returns {string} Returns the trimmed string.
+       * @example
+       *
+       * trimEnd('  abc  ')
+       * // => '  abc'
+       *
+       * trimEnd('-_-abc-_-', '_-')
+       * // => '-_-abc'
+       */
+    trimEnd: function (string, chars) {
+        if (!string) {
+            return '';
+        }
+        if (string && !chars) {
+            return string.replace(/\s*$/, '');
+        }
+        chars += '$';
+        return string.replace(new RegExp(chars, 'g'), '');
+    },
+
+    /**
+       * Returns the index of the first
+       * element `predicate` returns truthy for.
+       *
+       * @param {Array} array The array to inspect.
+       * @param {Object} predicate The exact object to be searched for in the array.
+       * @returns {number} Returns the index of the found element, else `-1`.
+       * @example
+       *
+       * var users = [
+          *   { 'user': 'barney',  'active': false },
+          *   { 'user': 'fred',    'active': false },
+          *   { 'user': 'pebbles', 'active': true }
+          * ];
+          *
+          * _.findIndex(users, { 'user': 'fred', 'active': false });
+          * // => 1
+          *
+          * _.findIndex(users, {'active' : false});
+          * // => 0
+          *
+          */
+    findIndex: function (array, predicate) {
+        var length = array === null ? 0 : array.length,
+            index = -1,
+            keys = Object.keys(predicate),
+            found, i;
+        if (!length) {
+            return -1;
+        }
+        for (i = 0; i < array.length; i++) {
+            found = true;
+            // eslint-disable-next-line no-loop-func
+            keys.forEach((key) => {
+                if (!(array[i][key] && array[i][key] === predicate[key])) {
+                    found = false;
+                }
+            });
+            if (found) {
+                index = i;
+                break;
+            }
+        }
+        return index;
+    },
+
+    /**
+       * Gets the value at `path` of `object`. If the resolved value is
+       * `undefined`, the `defaultValue` is returned in its place.
+       *
+       * @param {Object} object The object to query.
+       * @param {string} path The path of the property to get.
+       * @param {*} [defaultValue] The value returned for `undefined` resolved values.
+       * @returns {*} Returns the resolved value.
+       * @example
+       *
+       * const object = { a: {b : 'c'} }
+       *
+       *
+       * get(object, 'a.b.c', 'default')
+       * // => 'default'
+       *
+       * get(object, 'a.b', 'default')
+       * // => 'c'
+       */
+    get: function (object, path, defaultValue) {
+        if (object === null) {
+            return undefined;
+        }
+        var arr = path.split('.'),
+            res = object,
+            i;
+        for (i = 0; i < arr.length; i++) {
+            res = res[arr[i]];
+            if (res === undefined) {
+                return defaultValue;
+            }
+        }
+        return res;
+    },
+
+    /**
+       * Checks if `predicate` returns truthy for **all** elements of `array`.
+       * Iteration is stopped once `predicate` returns falsey. The predicate is
+       * invoked with three arguments: (value, index, array).
+       *
+       * @param {Array} array The array to iterate over.
+       * @param {Function} predicate The function invoked per iteration.
+       * @returns {boolean} Returns `true` if all elements pass the predicate check,
+       *  else `false`.
+       * @example
+       *
+       * every([true, 1, null, 'yes'], Boolean)
+       * // => false
+       */
+    every: function (array, predicate) {
+        var index = -1,
+            length = array === null ? 0 : array.length;
+
+        while (++index < length) {
+            if (!predicate(array[index], index, array)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+};
diff --git a/codegens/php-pecl-http/lib/phpPecl.js b/codegens/php-pecl-http/lib/phpPecl.js
new file mode 100644
index 0000000..09616fb
--- /dev/null
+++ b/codegens/php-pecl-http/lib/phpPecl.js
@@ -0,0 +1,121 @@
+var _ = require('./lodash'),
+    parseBody = require('./util/parseBody'),
+    sanitize = require('./util/sanitize').sanitize;
+
+/**
+ * Used to get the headers and put them in the desired form of the language
+ *
+ * @param  {Object} request - postman SDK-request object
+ * @param  {String} indentation - used for indenting snippet's structure
+ * @returns {String} - request headers in the desired format
+ */
+function getHeaders (request, indentation) {
+    var headerObject = request.getHeaders({enabled: true}),
+        headerMap;
+
+    if (!_.isEmpty(headerObject)) {
+        headerMap = _.map(Object.keys(headerObject), function (key) {
+            return `${indentation}'${sanitize(key)}' => ` +
+            `'${sanitize(headerObject[key])}'`;
+        });
+        return `$request->setHeaders(array(\n${headerMap.join(',\n')}\n));`;
+    }
+    return '';
+}
+
+
+module.exports = {
+    /**
+     * @returns {Array} plugin specific options
+     */
+    getOptions: function () {
+        return [
+            {
+                name: 'Indent Count',
+                id: 'indentCount',
+                type: 'integer',
+                default: 0,
+                description: 'Integer denoting count of indentation required'
+            },
+            {
+                name: 'Indent type',
+                id: 'indentType',
+                type: 'enum',
+                default: 'tab',
+                availableOptions: ['tab', 'space'],
+                description: 'String denoting type of indentation for code snippet. eg: \'space\', \'tab\''
+            },
+            {
+                name: 'Request Timeout',
+                id: 'requestTimeout',
+                type: 'integer',
+                default: 0,
+                description: 'Integer denoting time after which the request will bail out in milliseconds'
+            },
+            {
+                name: 'Body trim',
+                id: 'trimRequestBody',
+                type: 'boolean',
+                default: true,
+                description: 'Boolean denoting whether to trim request body fields'
+            },
+            {
+                name: 'Follow redirect',
+                id: 'followRedirect',
+                type: 'boolean',
+                default: true,
+                description: 'Boolean denoting whether or not to automatically follow redirects'
+            }
+        ];
+    },
+
+    /**
+     * @param  {Object} request - postman SDK-request object
+     * @param  {Object} options
+     * @param  {String} options.indentType - type of indentation eg: spaces/tab (default: space)
+     * @param  {String} options.indentCount - frequency of indent (default: 4 for indentType: space,
+     *                                                               default: 2 for indentType: tab)
+     * @param {Number} options.requestTimeout : time in milli-seconds after which request will bail out
+                                                (default: 0 -> never bail out)
+     * @param {Boolean} options.requestBodyTrim : whether to trim request body fields (default: false)
+     * @param {Boolean} options.followRedirect : whether to allow redirects of a request
+     * @param  {Function} callback - function with parameters (error, snippet)
+     */
+    convert: function (request, options, callback) {
+        var snippet = '',
+            indentation = '',
+            identity = '';
+
+        if (_.isFunction(options)) {
+            callback = options;
+        }
+        else if (!_.isFunction(callback)) {
+            throw new Error('Php-Pecl(HTTP)~convert: Callback is not a function');
+        }
+
+        identity = options.indentType === 'tab' ? '\t' : ' ';
+        indentation = identity.repeat(options.indentCount);
+
+        snippet = '<?php\n';
+        snippet += '$client = new http\\Client;\n';
+        snippet += '$request = new http\\Client\\Request;\n';
+        snippet += `$request->setRequestUrl('${sanitize(request.url.toString())}');\n`;
+        snippet += `$request->setRequestMethod('${request.method}');\n`;
+        if (!_.isEmpty(request.body)) {
+            snippet += '$body = new http\\Message\\Body;\n';
+            snippet += `${parseBody(request.toJSON(), indentation, options.requestBodyTrim)}`;
+            snippet += '$request->setBody($body);\n';
+        }
+        snippet += '$request->setOptions(array(';
+        snippet += options.requestTimeout === 0 ? '' : `'connecttimeout' => ${options.requestTimeout}`;
+        snippet += options.followRedirect ? '' : ', \'redirect\' => false';
+        snippet += '));\n';
+        snippet += `${getHeaders(request, indentation)}\n`;
+        snippet += '$client->enqueue($request)->send();\n';
+        snippet += '$response = $client->getResponse();\n';
+        snippet += 'echo $response->getBody();\n';
+        snippet += '?>';
+
+        return callback(null, snippet);
+    }
+};
diff --git a/codegens/php-pecl-http/lib/util/parseBody.js b/codegens/php-pecl-http/lib/util/parseBody.js
new file mode 100644
index 0000000..e379ebb
--- /dev/null
+++ b/codegens/php-pecl-http/lib/util/parseBody.js
@@ -0,0 +1,69 @@
+var _ = require('../lodash'),
+    sanitize = require('./sanitize').sanitize;
+
+/**
+ * Used to parse the body of the postman SDK-request and return in the desired format
+ *
+ * @param  {Object} request - postman SDK-request object
+ * @param  {String} indentation - used for indenting snippet's structure
+ * @param  {Boolean} bodyTrim - whether to trim body fields or not
+ * @returns {String} - request body
+ */
+module.exports = function (request, indentation, bodyTrim) {
+    // used to check whether body is present in the request or not
+    if (request.body) {
+        var bodyDataMap = [],
+            bodyFileMap = [],
+            requestBody = '',
+            enabledBodyList;
+
+        switch (request.body.mode) {
+            case 'raw':
+                if (!_.isEmpty(request.body[request.body.mode])) {
+                    requestBody += `$body->append('${request.body[request.body.mode]}');\n`;
+                }
+                return requestBody;
+
+            case 'urlencoded':
+                enabledBodyList = _.reject(request.body[request.body.mode], 'disabled');
+                if (!_.isEmpty(enabledBodyList)) {
+                    bodyDataMap = _.map(enabledBodyList, function (value) {
+                        return `${indentation}'${sanitize(value.key, bodyTrim)}' => ` +
+                            `'${sanitize(value.value, bodyTrim)}'`;
+                    });
+                    requestBody = `$body->append(new http\\QueryString(array(\n${bodyDataMap.join(',\n')})));`;
+                }
+                return requestBody;
+
+            case 'formdata':
+                enabledBodyList = _.reject(request.body[request.body.mode], 'disabled');
+                if (!_.isEmpty(enabledBodyList)) {
+                    bodyDataMap = _.map(_.filter(enabledBodyList, {'type': 'text'}), function (value) {
+                        return (`${indentation}'${sanitize(value.key, bodyTrim)}' => ` +
+                            `'${sanitize(value.value, bodyTrim)}'`);
+                    });
+                    bodyFileMap = _.map(_.filter(enabledBodyList, {'type': 'file'}), function (value) {
+                        return (`${indentation.repeat(2)}array('name' => '${sanitize(value.key, bodyTrim)}', ` +
+                            `'type' => '${sanitize(value.type, bodyTrim)}', ` +
+                            `'file' => '${sanitize(value.src, bodyTrim)}', ` +
+                            '\'data\' => null)');
+                    });
+                    requestBody = `$body->addForm(array(\n${bodyDataMap.join(',\n')}\n), ` +
+                        `array(${bodyFileMap.join(',\n')}));\n`;
+                }
+                return requestBody;
+
+            case 'file':
+                requestBody = `${indentation.repeat(2)}array('name' => '` +
+                    `${sanitize(request.body[request.body.mode].key, bodyTrim)}', ` +
+                    `'type' => '${sanitize(request.body[request.body.mode].type, bodyTrim)}', ` +
+                    `'file' => '${sanitize(request.body[request.body.mode].src, bodyTrim)}', ` +
+                    '\'data\' => null)';
+                return `$body->addForm(array(), array(${requestBody}));\n`;
+
+            default:
+                return requestBody;
+        }
+    }
+    return '';
+};
diff --git a/codegens/php-pecl-http/lib/util/sanitize.js b/codegens/php-pecl-http/lib/util/sanitize.js
new file mode 100644
index 0000000..e0269ac
--- /dev/null
+++ b/codegens/php-pecl-http/lib/util/sanitize.js
@@ -0,0 +1,17 @@
+module.exports = {
+    /**
+    * used to sanitize eg: trim, handle escape characters
+    * @param {String} inputString - input
+    * @param {Boolean} [inputTrim] - whether to trim the input
+    * @returns {String} 
+    */
+
+    sanitize: function (inputString, inputTrim) {
+        if (typeof inputString !== 'string') {
+            return '';
+        }
+
+        inputString = inputTrim && typeof inputTrim === 'boolean' ? inputString.trim() : inputString;
+        return inputString.replace(/\\/g, '\\\\').replace(/'/g, '\\\'');
+    }
+};
diff --git a/codegens/php-pecl-http/package-lock.json b/codegens/php-pecl-http/package-lock.json
new file mode 100644
index 0000000..525faf1
--- /dev/null
+++ b/codegens/php-pecl-http/package-lock.json
@@ -0,0 +1,5 @@
+{
+  "name": "@postman/codegen-php-peclhttp",
+  "version": "0.1.1",
+  "lockfileVersion": 1
+}
diff --git a/codegens/php-pecl-http/package.json b/codegens/php-pecl-http/package.json
new file mode 100644
index 0000000..ee24fce
--- /dev/null
+++ b/codegens/php-pecl-http/package.json
@@ -0,0 +1,33 @@
+{
+  "name": "@postman/codegen-php-pecl-http",
+  "version": "0.1.1",
+  "description": "Generates code snippets for a php Pecl_http variant",
+  "com_postman_plugin": {
+    "type": "code_generator",
+    "lang": "php",
+    "variant": "pecl_http",
+    "syntax_mode": "php"
+  },
+  "main": "index.js",
+  "directories": {
+    "lib": "lib",
+    "test": "test"
+  },
+  "scripts": {
+    "test": "node npm/test.js",
+    "test-lint": "node npm/test-lint.js",
+    "test-unit": "node npm/test-unit.js"
+  },
+  "repository": {
+    "type": "git",
+    "url": ""
+  },
+  "author": "Postman Labs <help@getpostman.com>",
+  "license": "Apache-2.0",
+  "homepage": "https://github.com/postmanlabs/code-generators/tree/master/codegens/php-pecl-http",
+  "dependencies": {},
+  "devDependencies": {},
+  "engines": {
+    "node": ">=8"
+  }
+}


Test patch:
diff --git a/codegens/php-pecl-http/npm/test-lint.js b/codegens/php-pecl-http/npm/test-lint.js
new file mode 100644
index 0000000..7a3a3a5
--- /dev/null
+++ b/codegens/php-pecl-http/npm/test-lint.js
@@ -0,0 +1,59 @@
+#!/usr/bin/env node
+require('shelljs/global');
+
+var chalk = require('chalk'),
+    async = require('async'),
+    ESLintCLIEngine = require('eslint').CLIEngine,
+
+    /**
+     * The list of source code files / directories to be linted.
+     *
+     * @type {Array}
+     */
+    LINT_SOURCE_DIRS = [
+        './lib',
+        './bin',
+        './test',
+        './examples/*.js',
+        './npm/*.js',
+        './index.js'
+    ];
+
+module.exports = function (exit) {
+    // banner line
+    console.info(chalk.yellow.bold('\nLinting files using eslint...'));
+
+    async.waterfall([
+
+        /**
+         * Instantiates an ESLint CLI engine and runs it in the scope defined within LINT_SOURCE_DIRS.
+         *
+         * @param {Function} next - The callback function whose invocation marks the end of the lint test run.
+         * @returns {*}
+         */
+        function (next) {
+            next(null, (new ESLintCLIEngine()).executeOnFiles(LINT_SOURCE_DIRS));
+        },
+
+        /**
+         * Processes a test report from the Lint test runner, and displays meaningful results.
+         *
+         * @param {Object} report - The overall test report for the current lint test.
+         * @param {Object} report.results - The set of test results for the current lint run.
+         * @param {Function} next - The callback whose invocation marks the completion of the post run tasks.
+         * @returns {*}
+         */
+        function (report, next) {
+            var errorReport = ESLintCLIEngine.getErrorResults(report.results);
+            // log the result to CLI
+            console.info(ESLintCLIEngine.getFormatter()(report.results));
+            // log the success of the parser if it has no errors
+            (errorReport && !errorReport.length) && console.info(chalk.green('eslint ok!'));
+            // ensure that the exit code is non zero in case there was an error
+            next(Number(errorReport && errorReport.length) || 0);
+        }
+    ], exit);
+};
+
+// ensure we run this script exports if this is a direct stdin.tty run
+!module.parent && module.exports(exit);
diff --git a/codegens/php-pecl-http/npm/test-unit.js b/codegens/php-pecl-http/npm/test-unit.js
new file mode 100755
index 0000000..0e136bf
--- /dev/null
+++ b/codegens/php-pecl-http/npm/test-unit.js
@@ -0,0 +1,59 @@
+#!/usr/bin/env node
+/* eslint-env node, es6 */
+// ---------------------------------------------------------------------------------------------------------------------
+// This script is intended to execute all unit tests.
+// ---------------------------------------------------------------------------------------------------------------------
+
+require('shelljs/global');
+
+// set directories and files for test and coverage report
+var path = require('path'),
+
+    NYC = require('nyc'),
+    chalk = require('chalk'),
+    recursive = require('recursive-readdir'),
+
+    COV_REPORT_PATH = '.coverage',
+    SPEC_SOURCE_DIR = path.join(__dirname, '..', 'test', 'unit');
+
+module.exports = function (exit) {
+    // banner line
+    console.info(chalk.yellow.bold('Running unit tests using mocha on node...'));
+
+    test('-d', COV_REPORT_PATH) && rm('-rf', COV_REPORT_PATH);
+    mkdir('-p', COV_REPORT_PATH);
+
+    var Mocha = require('mocha'),
+        nyc = new NYC({
+            reportDir: COV_REPORT_PATH,
+            tempDirectory: COV_REPORT_PATH,
+            reporter: ['text', 'lcov', 'text-summary'],
+            exclude: ['config', 'test'],
+            hookRunInContext: true,
+            hookRunInThisContext: true
+        });
+
+    nyc.wrap();
+    // add all spec files to mocha
+    recursive(SPEC_SOURCE_DIR, function (err, files) {
+        if (err) { console.error(err); return exit(1); }
+
+        var mocha = new Mocha({ timeout: 1000 * 60 });
+
+        files.filter(function (file) { // extract all test files
+            return (file.substr(-8) === '.test.js');
+        }).forEach(mocha.addFile.bind(mocha));
+
+        mocha.run(function (runError) {
+            runError && console.error(runError.stack || runError);
+
+            nyc.reset();
+            nyc.writeCoverageFile();
+            nyc.report();
+            exit(runError ? 1 : 0);
+        });
+    });
+};
+
+// ensure we run this script exports if this is a direct stdin.tty run
+!module.parent && module.exports(exit);
diff --git a/codegens/php-pecl-http/npm/test.js b/codegens/php-pecl-http/npm/test.js
new file mode 100755
index 0000000..aef977e
--- /dev/null
+++ b/codegens/php-pecl-http/npm/test.js
@@ -0,0 +1,17 @@
+#!/usr/bin/env node
+var chalk = require('chalk'),
+    exit = require('shelljs').exit,
+    prettyms = require('pretty-ms'),
+    startedAt = Date.now(),
+    name = require('../package.json').name;
+
+require('async').series([
+    require('./test-lint'),
+    require('./test-unit')
+    // require('./test-browser')
+    // require('./test-integration')
+], function (code) {
+    // eslint-disable-next-line max-len
+    console.info(chalk[code ? 'red' : 'green'](`\n${name}: duration ${prettyms(Date.now() - startedAt)}\n${name}: ${code ? 'not ok' : 'ok'}!`));
+    exit(code && (typeof code === 'number' ? code : 1) || 0);
+});
diff --git a/codegens/php-pecl-http/test/.eslintrc b/codegens/php-pecl-http/test/.eslintrc
new file mode 100644
index 0000000..9d477e3
--- /dev/null
+++ b/codegens/php-pecl-http/test/.eslintrc
@@ -0,0 +1,30 @@
+{
+  "plugins": [
+    "mocha"
+  ],
+  "env": {
+    "mocha": true,
+    "node": true,
+    "es6": true
+  },
+  "rules": {
+    // Mocha
+    "mocha/handle-done-callback": "error",
+    "mocha/max-top-level-suites": "error",
+    "mocha/no-exclusive-tests": "error",
+    "mocha/no-global-tests": "error",
+    "mocha/no-hooks-for-single-case": "off",
+    "mocha/no-hooks": "off",
+    "mocha/no-identical-title": "error",
+    "mocha/no-mocha-arrows": "error",
+    "mocha/no-nested-tests": "error",
+    "mocha/no-pending-tests": "error",
+    "mocha/no-return-and-callback": "error",
+    "mocha/no-sibling-hooks": "error",
+    "mocha/no-skipped-tests": "warn",
+    "mocha/no-synchronous-tests": "off",
+    "mocha/no-top-level-hooks": "warn",
+    "mocha/valid-test-description": "off",
+    "mocha/valid-suite-description": "off"
+  }
+}
diff --git a/codegens/php-pecl-http/test/unit/.gitkeep b/codegens/php-pecl-http/test/unit/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/codegens/php-pecl-http/test/unit/converter.test.js b/codegens/php-pecl-http/test/unit/converter.test.js
new file mode 100644
index 0000000..553e1a2
--- /dev/null
+++ b/codegens/php-pecl-http/test/unit/converter.test.js
@@ -0,0 +1,623 @@
+var expect = require('chai').expect,
+    sdk = require('postman-collection'),
+    fs = require('fs'),
+    convert = require('../../lib').convert,
+    getOptions = require('../../lib').getOptions,
+    sanitize = require('../../lib/util/sanitize').sanitize,
+    parseBody = require('../../lib/util/parseBody');
+
+describe('Request Snippet', function () {
+
+    describe('should be same as the valid request snippet for Php-Pecl(HTTP) for ', function () {
+
+        it('request headers', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[0].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/headers\');\n' +
+                '$request->setRequestMethod(\'GET\');\n$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n    \'my-sample-header\' => \'Lorem ipsum dolor sit amet\',\n' +
+                '    \'testing\' => \'\\\'singlequotes\\\'\',\n    \'TEST\' => \'"doublequotes"\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('request headers (with special characters) + (Request timeout check)', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[1].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 10,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;' +
+                '\n$request->setRequestUrl(\'https://postman-echo.com/headers\');\n' +
+                '$request->setRequestMethod(\'GET\');\n' +
+                '$request->setOptions(array(\'connecttimeout\' => 10));\n' +
+                '$request->setHeaders(array(\n' +
+                '    \'my-sample-header\' => \'Lorem ipsum dolor sit amet\',\n' +
+                '    \'TEST\' => \'@#$%^&*()\',\n    \'more\' => \',./\\\';[]}{":?><|\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('request headers (disabled headers)', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[2].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/headers\');\n' +
+                '$request->setRequestMethod(\'GET\');\n$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n    \'my-sample-header\' => \'Lorem ipsum dolor sit amet\',\n' +
+                '    \'not-disabled-header\' => \'ENABLED\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('GET request with disabled query', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[3].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/get?test=123&anotherone=232\');\n' +
+                '$request->setRequestMethod(\'GET\');\n$request->setOptions(array());\n\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST form data with special characters + (Check trim true)', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[4].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: true,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->addForm(array(\n' +
+                '    \'pl\' => \'\\\'a\\\'\',\n    \'qu\' => \'"b"\',\n    ' +
+                '\'hdjkljh\' => \'c\',\n    \'sa\' => \'d\',\n' +
+                '    \'Special\' => \'!@#$%&*()^_+=`~\',\n    ' +
+                '\'more\' => \',./\\\';[]}{":?><|\\\\\\\\\'\n), array());\n' +
+                '$request->setBody($body);\n$request->setOptions(array());\n\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('Resolve URL (quotes + special characters)', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[5].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl' +
+                '(\'https://postman-echo.com/post?a=!@$^*()_-`%26&b=,./\\\';[]}{":/?><||\\\\\');\n' +
+                '$request->setRequestMethod(\'POST\');\n$request->setOptions(array());\n\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST raw text', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[6].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->append(\'Duis posuere augue vel cursus pharetra.' +
+                ' In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.' +
+                '\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis' +
+                ' consectetur interdum volutpat.\');\n' +
+                '$request->setBody($body);\n$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n    \'Content-Type\' => \'application/x-www-form-urlencoded\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST urlencoded data with disabled entries + (Check for trim option false)', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[7].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->append(new http\\QueryString(array(\n' +
+                '    \'1\' => \'\\\'a\\\'\',\n    \'2\' => \'"b"\',\n    \'\\\'3\\\'\' => \'c\',\n' +
+                '    \'"4"      \' => \'d      \',\n    \'Special\' => \'!@#$%&*()^_=`~\',\n' +
+                '    \'more\' => \',./\\\';[]}{":?><|\\\\\\\\\')));' +
+                '$request->setBody($body);\n$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n    \'Content-Type\' => \'application/x-www-form-urlencoded\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST raw data as JSON', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[8].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->append(\'{\n  "json": "Test-Test"\n}\');\n' +
+                '$request->setBody($body);\n$request->setOptions(array());\n$request->setHeaders(array(\n' +
+                '    \'Content-Type\' => \'application/json\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST raw data as javascript', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[9].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->append(\'var val = 6;\nconsole.log(val);\');\n' +
+                '$request->setBody($body);\n$request->setOptions(array());\n$request->setHeaders(array(\n' +
+                '    \'Content-Type\' => \'application/javascript\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST raw data as text/xml', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[10].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n' +
+                '$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->append(\'<xml>\n\tTest Test\n</xml>\');\n' +
+                '$request->setBody($body);\n$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n    \'Content-Type\' => \'text/xml\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST raw data as text/html', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[11].request,
+                outputSnippet;
+
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n$body->append(\'<html>\n  Test Test\n</html>\');\n' +
+                '$request->setBody($body);\n$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n' +
+                '    \'Content-Type\' => \'text/html\'\n));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST binary file in body', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[25].request,
+                outputSnippet;
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n' +
+                '$body->addForm(array(), array(' +
+                '        array(\'name\' => \'\', \'type\' => \'\', \'file\' => \'\', \'data\' => null)));\n' +
+                '$request->setBody($body);\n' +
+                '$request->setOptions(array());\n' +
+                '$request->setHeaders(array(\n' +
+                '    \'Content-Type\' => \'application/x-www-form-urlencoded\'\n' +
+                '));\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+
+        it('POST form data with file', function (finish) {
+            var collection = new sdk.Collection(JSON.parse(
+                    fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+                request = collection.items.members[26].request,
+                outputSnippet;
+            convert(request, {indentType: 'space',
+                indentCount: 4,
+                requestTimeout: 0,
+                requestBodyTrim: false,
+                addCacheHeader: false,
+                followRedirect: true}, function (error, snippet) {
+                if (error) {
+                    console.error(error);
+                }
+                outputSnippet = '<?php\n$client = new http\\Client;\n' +
+                '$request = new http\\Client\\Request;\n' +
+                '$request->setRequestUrl(\'https://postman-echo.com/post\');\n' +
+                '$request->setRequestMethod(\'POST\');\n' +
+                '$body = new http\\Message\\Body;\n' +
+                '$body->addForm(array(\n\n' +
+                '), array(        array(' +
+                '\'name\' => \'test-file\', \'type\' => \'file\', \'file\' => \'\', \'data\' => null)));\n' +
+                '$request->setBody($body);\n' +
+                '$request->setOptions(array());\n\n' +
+                '$client->enqueue($request)->send();\n' +
+                '$response = $client->getResponse();\n' +
+                'echo $response->getBody();\n' +
+                '?>';
+                expect((snippet)).to.equal(outputSnippet);
+                finish();
+            });
+        });
+    });
+
+    it('should not throw an error if options is a function', function (done) {
+        var collection = new sdk.Collection(JSON.parse(
+                fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+            request = collection.items.members[0].request;
+        convert(request, getOptions(), function (error, snippet) {
+            if (error) {
+                console.log(error);
+            }
+            else {
+                expect(snippet).not.to.be.equal('');
+            }
+            done();
+        });
+    });
+
+    it('should return valid snippet when options is not passed as argument', function (done) {
+        var collection = new sdk.Collection(JSON.parse(
+                fs.readFileSync('test/unit/fixtures/sample_collection.json').toString())),
+            request = collection.items.members[0].request;
+        convert(request, function (error, snippet) {
+            if (error) {
+                console.log(error);
+            }
+            else {
+                expect(snippet).not.to.be.equal('');
+            }
+            done();
+        });
+    });
+
+    it('should throw an error when callback is not function', function () {
+        expect(function () { convert({}, {}); })
+            .to.throw('Php-Pecl(HTTP)~convert: Callback is not a function');
+    });
+
+    describe('parseBody function', function () {
+        it('should return empty string if request body is an empty string', function (done) {
+            var request = {
+                'method': 'POST',
+                'header': [],
+                'body': {
+                    'mode': 'raw',
+                    'raw': {}
+                },
+                'url': {
+                    'raw': 'https://mockbin.org/request',
+                    'protocol': 'https',
+                    'host': [
+                        'mockbin',
+                        'org'
+                    ],
+                    'path': [
+                        'request'
+                    ]
+                }
+            };
+            expect(parseBody(request, {indentType: 'space', indentCount: 4}, true)).to.be.equal('');
+            done();
+        });
+
+        it('should return empty string if request body is present but body.mode is not present', function (done) {
+            var request = {
+                'method': 'POST',
+                'header': [],
+                'body': {},
+                'url': {
+                    'raw': 'https://mockbin.org/request',
+                    'protocol': 'https',
+                    'host': [
+                        'mockbin',
+                        'org'
+                    ],
+                    'path': [
+                        'request'
+                    ]
+                }
+            };
+            expect(parseBody(request, {indentType: 'space', indentCount: 4}, true)).to.be.equal('');
+            done();
+        });
+
+        it('parseBody should return empty body if request body mode is not valid', function (done) {
+            var request = {
+                'method': 'POST',
+                'header': [],
+                'body': {
+                    'mode': 'lorem'
+                },
+                'url': {
+                    'raw': 'https://mockbin.org/request',
+                    'protocol': 'https',
+                    'host': [
+                        'mockbin',
+                        'org'
+                    ],
+                    'path': [
+                        'request'
+                    ]
+                }
+            };
+            expect(parseBody(request, {indentType: 'space', indentCount: 4}, true)).to.be.equal('');
+            done();
+        });
+
+        it('should return empty string if request body is not present', function (done) {
+            var request = {
+                'method': 'POST',
+                'header': [],
+                'url': {
+                    'raw': 'https://mockbin.org/request',
+                    'protocol': 'https',
+                    'host': [
+                        'mockbin',
+                        'org'
+                    ],
+                    'path': [
+                        'request'
+                    ]
+                }
+            };
+            expect(parseBody(request, {indentType: 'space', indentCount: 4}, true)).to.be.equal('');
+            done();
+        });
+    });
+
+    describe('getOptions function', function () {
+        var options = getOptions();
+        it('should return an array of specific options', function () {
+            expect(options).to.be.an('array');
+        });
+        it('should have 0 as default indent count ', function () {
+            expect(options[0].default).to.equal(0);
+        });
+        it('should have tab as default indent type ', function () {
+            expect(options[1].default).to.equal('tab');
+        });
+        it('should have 0 as default request timeout ', function () {
+            expect(options[2].default).to.equal(0);
+        });
+        it('should have default body trim set as true', function () {
+            expect(options[3].default).to.equal(true);
+        });
+    });
+
+    describe('Sanitize function', function () {
+        it('should return empty string when input is not a string type', function () {
+            expect(sanitize(123, false)).to.equal('');
+            expect(sanitize(null, false)).to.equal('');
+            expect(sanitize({}, false)).to.equal('');
+            expect(sanitize([], false)).to.equal('');
+        });
+        it('should trim input string when needed', function () {
+            expect(sanitize('inputString     ', true)).to.equal('inputString');
+        });
+    });
+});
diff --git a/codegens/php-pecl-http/test/unit/fixtures/codesnippet.php b/codegens/php-pecl-http/test/unit/fixtures/codesnippet.php
new file mode 100644
index 0000000..7c15932
--- /dev/null
+++ b/codegens/php-pecl-http/test/unit/fixtures/codesnippet.php
@@ -0,0 +1,16 @@
+<?php
+$client = new http\Client;
+$request = new http\Client\Request;
+$request->setRequestUrl('https://postman-echo.com/post');
+$request->setRequestMethod('POST');
+$body = new http\Message\Body;
+$body->addForm(array(
+
+), array(        array('name' => 'test-file', 'type' => 'file', 'file' => '', 'data' => null)));
+$request->setBody($body);
+$request->setOptions(array('connecttimeout' => 100));
+
+$client->enqueue($request)->send();
+$response = $client->getResponse();
+echo $response->getBody();
+?>
\ No newline at end of file
diff --git a/codegens/php-pecl-http/test/unit/fixtures/sample_collection.json b/codegens/php-pecl-http/test/unit/fixtures/sample_collection.json
new file mode 100644
index 0000000..f172782
--- /dev/null
+++ b/codegens/php-pecl-http/test/unit/fixtures/sample_collection.json
@@ -0,0 +1,1503 @@
+{
+	"info": {
+		"name": "Code-Gen Test PHP pecl_http",
+		"_postman_id": "43058ce7-94da-0f0f-366e-22b77d566316",
+		"description": "This collection contains requests that will be used to test validity of plugin created to convert postman request into code snippet of particular language.",
+		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+	},
+	"item": [
+		{
+			"name": "Request Headers",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"try {",
+							"    tests[\"Body contains headers\"] = responseBody.has(\"headers\");",
+							"    responseJSON = JSON.parse(responseBody);",
+							"    tests[\"Header contains host\"] = \"host\" in responseJSON.headers;",
+							"    tests[\"Header contains test parameter sent as part of request header\"] = \"my-sample-header\" in responseJSON.headers;",
+							"}",
+							"catch (e) { }",
+							"",
+							"",
+							"",
+							""
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "GET",
+				"header": [
+					{
+						"key": "my-sample-header",
+						"value": "Lorem ipsum dolor sit amet"
+					},
+					{
+						"key": "testing",
+						"value": "'singlequotes'"
+					},
+					{
+						"key": "TEST",
+						"value": "\"doublequotes\""
+					}
+				],
+				"body": {},
+				"url": {
+					"raw": "https://postman-echo.com/headers",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"headers"
+					]
+				},
+				"description": "A `GET` request to this endpoint returns the list of all request headers as part of the response JSON.\nIn Postman, sending your own set of headers through the [Headers tab](https://www.getpostman.com/docs/requests#headers?source=echo-collection-app-onboarding) will reveal the headers as part of the response."
+			},
+			"response": []
+		},
+		{
+			"name": "Request Headers (With special Characters)",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"try {",
+							"    tests[\"Body contains headers\"] = responseBody.has(\"headers\");",
+							"    responseJSON = JSON.parse(responseBody);",
+							"    tests[\"Header contains host\"] = \"host\" in responseJSON.headers;",
+							"    tests[\"Header contains test parameter sent as part of request header\"] = \"my-sample-header\" in responseJSON.headers;",
+							"}",
+							"catch (e) { }",
+							"",
+							"",
+							"",
+							""
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "GET",
+				"header": [
+					{
+						"key": "my-sample-header",
+						"value": "Lorem ipsum dolor sit amet"
+					},
+					{
+						"key": "TEST",
+						"value": "@#$%^&*()"
+					},
+					{
+						"key": "more",
+						"value": ",./';[]}{\":?><|"
+					}
+				],
+				"body": {},
+				"url": {
+					"raw": "https://postman-echo.com/headers",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"headers"
+					]
+				},
+				"description": "A `GET` request to this endpoint returns the list of all request headers as part of the response JSON.\nIn Postman, sending your own set of headers through the [Headers tab](https://www.getpostman.com/docs/requests#headers?source=echo-collection-app-onboarding) will reveal the headers as part of the response."
+			},
+			"response": []
+		},
+		{
+			"name": "Request Headers with disabled headers",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"try {",
+							"    tests[\"Body contains headers\"] = responseBody.has(\"headers\");",
+							"    responseJSON = JSON.parse(responseBody);",
+							"    tests[\"Header contains host\"] = \"host\" in responseJSON.headers;",
+							"    tests[\"Header contains test parameter sent as part of request header\"] = \"my-sample-header\" in responseJSON.headers;",
+							"}",
+							"catch (e) { }",
+							"",
+							"",
+							"",
+							""
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "GET",
+				"header": [
+					{
+						"key": "my-sample-header",
+						"value": "Lorem ipsum dolor sit amet"
+					},
+					{
+						"key": "not-disabled-header",
+						"value": "ENABLED"
+					},
+					{
+						"key": "disabled header",
+						"value": "DISABLED",
+						"disabled": true
+					}
+				],
+				"body": {},
+				"url": {
+					"raw": "https://postman-echo.com/headers",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"headers"
+					]
+				},
+				"description": "A `GET` request to this endpoint returns the list of all request headers as part of the response JSON.\nIn Postman, sending your own set of headers through the [Headers tab](https://www.getpostman.com/docs/requests#headers?source=echo-collection-app-onboarding) will reveal the headers as part of the response."
+			},
+			"response": []
+		},
+		{
+			"name": "GET Request with disabled query",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"tests['response json contains headers'] = _.has(responseJSON, 'headers');",
+							"tests['response json contains args'] = _.has(responseJSON, 'args');",
+							"tests['response json contains url'] = _.has(responseJSON, 'url');",
+							"",
+							"tests['args key contains argument passed as url parameter'] = ('test' in responseJSON.args);",
+							"tests['args passed via request url params has value \"123\"'] = (_.get(responseJSON, 'args.test') === \"123\");"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "GET",
+				"header": [],
+				"body": {},
+				"url": {
+					"raw": "https://postman-echo.com/get?test=123&anotherone=232",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"get"
+					],
+					"query": [
+						{
+							"key": "test",
+							"value": "123",
+							"equals": true
+						},
+						{
+							"key": "anotherone",
+							"value": "232",
+							"equals": true
+						},
+						{
+							"key": "anotheroneone",
+							"value": "sdfsdf",
+							"equals": true,
+							"disabled": true
+						}
+					]
+				},
+				"description": "The HTTP `GET` request method is meant to retrieve data from a server. The data\nis identified by a unique URI (Uniform Resource Identifier). \n\nA `GET` request can pass parameters to the server using \"Query String \nParameters\". For example, in the following request,\n\n> http://example.com/hi/there?hand=wave\n\nThe parameter \"hand\" has the value \"wave\".\n\nThis endpoint echoes the HTTP headers, request parameters and the complete\nURI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "POST form data with special characters Copy",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [],
+				"body": {
+					"mode": "formdata",
+					"formdata": [
+						{
+							"key": "pl",
+							"value": "'a'",
+							"type": "text"
+						},
+						{
+							"key": "qu",
+							"value": "\"b\"",
+							"type": "text"
+						},
+						{
+							"key": "hdjkljh    ",
+							"value": "c    ",
+							"type": "text"
+						},
+						{
+							"key": "sa",
+							"value": "d",
+							"type": "text"
+						},
+						{
+							"key": "Special    ",
+							"value": "!@#$%&*()^_+=`~    ",
+							"type": "text"
+						},
+						{
+							"key": "Not Select",
+							"value": "Disabled",
+							"type": "text",
+							"disabled": true
+						},
+						{
+							"key": "more",
+							"value": ",./';[]}{\":?><|\\\\",
+							"type": "text"
+						}
+					]
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "Resolve URL (Quotes + Special Characters) Copy",
+			"request": {
+				"method": "POST",
+				"header": [],
+				"body": {},
+				"url": {
+					"raw": "https://postman-echo.com/:action?a=!@$^*()_-`%26&b=,./';[]}{\":/?><||\\",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						":action"
+					],
+					"query": [
+						{
+							"key": "a",
+							"value": "!@$^*()_-`%26",
+							"equals": true
+						},
+						{
+							"key": "b",
+							"value": ",./';[]}{\":/?><||\\",
+							"equals": true
+						}
+					],
+					"variable": [
+						{
+							"key": "action",
+							"value": "post"
+						}
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "POST Raw Text",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "application/x-www-form-urlencoded"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "POST urlencoded data with disabled entries",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "application/x-www-form-urlencoded"
+					}
+				],
+				"body": {
+					"mode": "urlencoded",
+					"urlencoded": [
+						{
+							"key": "1",
+							"value": "'a'",
+							"description": "",
+							"type": "text"
+						},
+						{
+							"key": "2",
+							"value": "\"b\"",
+							"description": "",
+							"type": "text"
+						},
+						{
+							"key": "'3'",
+							"value": "c",
+							"description": "",
+							"type": "text"
+						},
+						{
+							"key": "\"4\"      ",
+							"value": "d      ",
+							"description": "",
+							"type": "text"
+						},
+						{
+							"key": "Special",
+							"value": "!@#$%&*()^_=`~",
+							"description": "",
+							"type": "text"
+						},
+						{
+							"key": "more",
+							"value": ",./';[]}{\":?><|\\\\",
+							"description": "",
+							"type": "text"
+						}
+					]
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "POST json with raw",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "application/json"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "{\n  \"json\": \"Test-Test\"\n}"
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": [
+				{
+					"id": "0bfab08c-cc5a-4bb0-85f2-699383707fe4",
+					"name": "POST json with raw",
+					"originalRequest": {
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"value": "application/json"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n  \"json\": \"Test-Test\"\n}"
+						},
+						"url": {
+							"raw": "https://postman-echo.com/post",
+							"protocol": "https",
+							"host": [
+								"postman-echo",
+								"com"
+							],
+							"path": [
+								"post"
+							]
+						}
+					},
+					"status": "OK",
+					"code": 200,
+					"_postman_previewlanguage": "json",
+					"header": [
+						{
+							"key": "Access-Control-Allow-Credentials",
+							"value": "",
+							"name": "Access-Control-Allow-Credentials",
+							"description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."
+						},
+						{
+							"key": "Access-Control-Allow-Headers",
+							"value": "",
+							"name": "Access-Control-Allow-Headers",
+							"description": "Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."
+						},
+						{
+							"key": "Access-Control-Allow-Methods",
+							"value": "",
+							"name": "Access-Control-Allow-Methods",
+							"description": "Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."
+						},
+						{
+							"key": "Access-Control-Allow-Origin",
+							"value": "",
+							"name": "Access-Control-Allow-Origin",
+							"description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."
+						},
+						{
+							"key": "Access-Control-Expose-Headers",
+							"value": "",
+							"name": "Access-Control-Expose-Headers",
+							"description": "Lets a server whitelist headers that browsers are allowed to access."
+						},
+						{
+							"key": "Connection",
+							"value": "keep-alive",
+							"name": "Connection",
+							"description": "Options that are desired for the connection"
+						},
+						{
+							"key": "Content-Encoding",
+							"value": "gzip",
+							"name": "Content-Encoding",
+							"description": "The type of encoding used on the data."
+						},
+						{
+							"key": "Content-Length",
+							"value": "385",
+							"name": "Content-Length",
+							"description": "The length of the response body in octets (8-bit bytes)"
+						},
+						{
+							"key": "Content-Type",
+							"value": "application/json; charset=utf-8",
+							"name": "Content-Type",
+							"description": "The mime type of this content"
+						},
+						{
+							"key": "Date",
+							"value": "Wed, 07 Feb 2018 10:06:15 GMT",
+							"name": "Date",
+							"description": "The date and time that the message was sent"
+						},
+						{
+							"key": "ETag",
+							"value": "W/\"215-u7EU1nFtauIn0/aVifjuXA\"",
+							"name": "ETag",
+							"description": "An identifier for a specific version of a resource, often a message digest"
+						},
+						{
+							"key": "Server",
+							"value": "nginx",
+							"name": "Server",
+							"description": "A name for the server"
+						},
+						{
+							"key": "Vary",
+							"value": "X-HTTP-Method-Override, Accept-Encoding",
+							"name": "Vary",
+							"description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."
+						},
+						{
+							"key": "set-cookie",
+							"value": "sails.sid=s%3AxRBxgrc9M-jKK_l1mX3y3rM_ry8wYLz4.Of4qpOzd9hi6uO0sAQIj%2Bxs2VeppWxYjJa4OpIW3PKg; Path=/; HttpOnly",
+							"name": "set-cookie",
+							"description": "an HTTP cookie"
+						}
+					],
+					"cookie": [
+						{
+							"expires": "Tue Jan 19 2038 08:44:07 GMT+0530 (IST)",
+							"httpOnly": true,
+							"domain": "postman-echo.com",
+							"path": "/",
+							"secure": false,
+							"value": "s%3AxRBxgrc9M-jKK_l1mX3y3rM_ry8wYLz4.Of4qpOzd9hi6uO0sAQIj%2Bxs2VeppWxYjJa4OpIW3PKg",
+							"key": "sails.sid"
+						}
+					],
+					"responseTime": null,
+					"body": "{\"args\":{},\"data\":\"{\\n  \\\"json\\\": \\\"Test-Test\\\"\\n}\",\"files\":{},\"form\":{},\"headers\":{\"host\":\"postman-echo.com\",\"content-length\":\"25\",\"accept\":\"*/*\",\"accept-encoding\":\"gzip, deflate\",\"cache-control\":\"no-cache\",\"content-type\":\"text/plain\",\"cookie\":\"sails.sid=s%3AkOgtF1XmXtVFx-Eg3S7-37BKKaMqMDPe.hnwldNwyvsaASUiRR0Y0vcowadkMXO4HMegTeVIPgqo\",\"postman-token\":\"2ced782f-a141-428e-8af6-04ce954a77d5\",\"user-agent\":\"PostmanRuntime/7.1.1\",\"x-forwarded-port\":\"443\",\"x-forwarded-proto\":\"https\"},\"json\":null,\"url\":\"https://postman-echo.com/post\"}"
+				}
+			]
+		},
+		{
+			"name": "POST javascript with raw",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "application/javascript"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "var val = 6;\nconsole.log(val);"
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "POST text/xml with raw",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/xml"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "<xml>\n\tTest Test\n</xml>"
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "POST text/html with raw",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/html"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "<html>\n  Test Test\n</html>"
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "Resolve URL",
+			"request": {
+				"method": "POST",
+				"header": [],
+				"body": {},
+				"url": {
+					"raw": "https://postman-echo.com/:action?a=''&b=\"\"",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						":action"
+					],
+					"query": [
+						{
+							"key": "a",
+							"value": "''",
+							"equals": true
+						},
+						{
+							"key": "b",
+							"value": "\"\"",
+							"equals": true
+						},
+						{
+							"key": "more",
+							"value": "",
+							"equals": true,
+							"disabled": true
+						}
+					],
+					"variable": [
+						{
+							"key": "action",
+							"value": "post"
+						}
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "PUT Request",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has PUT data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data sent in request'] = (responseJSON.data && responseJSON.data.length === 256);"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "PUT",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Etiam mi lacus, cursus vitae felis et, blandit pellentesque neque. Vestibulum eget nisi a tortor commodo dignissim.\nQuisque ipsum ligula, faucibus a felis a, commodo elementum nisl. Mauris vulputate sapien et tincidunt viverra. Donec vitae velit nec metus."
+				},
+				"url": {
+					"raw": "https://postman-echo.com/put",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"put"
+					]
+				},
+				"description": "The HTTP `PUT` request method is similar to HTTP `POST`. It too is meant to \ntransfer data to a server (and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `PUT` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following \nraw HTTP request,\n\n> PUT /hi/there?hand=wave\n>\n> <request-body>\n\n\n"
+			},
+			"response": []
+		},
+		{
+			"name": "PATCH Request",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has PUT data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data sent in request'] = (responseJSON.data && responseJSON.data.length === 256);"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "PATCH",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Curabitur auctor, elit nec pulvinar porttitor, ex augue condimentum enim, eget suscipit urna felis quis neque.\nSuspendisse sit amet luctus massa, nec venenatis mi. Suspendisse tincidunt massa at nibh efficitur fringilla. Nam quis congue mi. Etiam volutpat."
+				},
+				"url": {
+					"raw": "https://postman-echo.com/patch",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"patch"
+					]
+				},
+				"description": "The HTTP `PATCH` method is used to update resources on a server. The exact\nuse of `PATCH` requests depends on the server in question. There are a number\nof server implementations which handle `PATCH` differently. Technically, \n`PATCH` supports both Query String parameters and a Request Body.\n\nThis endpoint accepts an HTTP `PATCH` request and provides debug information\nsuch as the HTTP headers, Query String arguments, and the Request Body."
+			},
+			"response": []
+		},
+		{
+			"name": "DELETE Request",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has PUT data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data sent in request'] = (responseJSON.data && responseJSON.data.length === 256);"
+						]
+					}
+				}
+			],
+			"request": {
+				"method": "DELETE",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Donec fermentum, nisi sed cursus eleifend, nulla tortor ultricies tellus, ut vehicula orci arcu ut velit. In volutpat egestas dapibus.\nMorbi condimentum vestibulum sapien. Etiam dignissim diam quis eros lobortis gravida vel lobortis est. Etiam gravida sed."
+				},
+				"url": {
+					"raw": "https://postman-echo.com/delete",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"delete"
+					]
+				},
+				"description": "The HTTP `DELETE` method is used to delete resources on a server. The exact\nuse of `DELETE` requests depends on the server implementation. In general, \n`DELETE` requests support both, Query String parameters as well as a Request \nBody.\n\nThis endpoint accepts an HTTP `DELETE` request and provides debug information\nsuch as the HTTP headers, Query String arguments, and the Request Body."
+			},
+			"response": []
+		},
+		{
+			"name": "OPTIONS to postman echo",
+			"event": [
+				{
+					"listen": "test",
+					"script": {
+						"type": "text/javascript",
+						"exec": [
+							"var responseJSON;",
+							"",
+							"try { ",
+							"    responseJSON = JSON.parse(responseBody); ",
+							"    tests['response is valid JSON'] = true;",
+							"}",
+							"catch (e) { ",
+							"    responseJSON = {}; ",
+							"    tests['response is valid JSON'] = false;",
+							"}",
+							"",
+							"",
+							"tests['response has post data'] = _.has(responseJSON, 'data');",
+							"tests['response matches the data posted'] = (responseJSON.data && responseJSON.data.length === 256);",
+							"",
+							"tests[\"content-type equals text/plain\"] = responseJSON && responseJSON.headers && (responseJSON.headers[\"content-type\"] === 'text/plain');"
+						]
+					}
+				}
+			],
+			"request": {
+				"auth": {
+					"type": "noauth"
+				},
+				"method": "OPTIONS",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				},
+				"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
+			},
+			"response": []
+		},
+		{
+			"name": "LINK request",
+			"request": {
+				"method": "LINK",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://mockbin.org/request",
+					"protocol": "https",
+					"host": [
+						"mockbin",
+						"org"
+					],
+					"path": [
+						"request"
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "UNLINK request",
+			"request": {
+				"method": "UNLINK",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://mockbin.org/request",
+					"protocol": "https",
+					"host": [
+						"mockbin",
+						"org"
+					],
+					"path": [
+						"request"
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "LOCK request",
+			"request": {
+				"method": "LOCK",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://mockbin.org/request",
+					"protocol": "https",
+					"host": [
+						"mockbin",
+						"org"
+					],
+					"path": [
+						"request"
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "UNLOCK request",
+			"request": {
+				"method": "UNLOCK",
+				"header": [],
+				"body": {},
+				"url": {
+					"raw": "https://mockbin.org/request",
+					"protocol": "https",
+					"host": [
+						"mockbin",
+						"org"
+					],
+					"path": [
+						"request"
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "PROFIND request",
+			"request": {
+				"method": "PROPFIND",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://mockbin.org/request",
+					"protocol": "https",
+					"host": [
+						"mockbin",
+						"org"
+					],
+					"path": [
+						"request"
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "VIEW request",
+			"request": {
+				"method": "VIEW",
+				"header": [
+					{
+						"key": "Content-Type",
+						"value": "text/plain"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "Duis posuere augue vel cursus pharetra. In luctus a ex nec pretium. Praesent neque quam, tincidunt nec leo eget, rutrum vehicula magna.\nMaecenas consequat elementum elit, id semper sem tristique et. Integer pulvinar enim quis consectetur interdum volutpat."
+				},
+				"url": {
+					"raw": "https://mockbin.org/request",
+					"protocol": "https",
+					"host": [
+						"mockbin",
+						"org"
+					],
+					"path": [
+						"request"
+					]
+				},
+				"description": null
+			},
+			"response": []
+		},
+		{
+			"name": "PURGE Request",
+			"request": {
+				"method": "PURGE",
+				"header": [],
+				"body": {},
+				"url": {
+					"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io",
+					"protocol": "https",
+					"host": [
+						"9c76407d-5b8d-4b22-99fb-8c47a85d9848",
+						"mock",
+						"pstmn",
+						"io"
+					]
+				},
+				"description": ""
+			},
+			"response": []
+		},
+		{
+			"name": "COPY Request",
+			"request": {
+				"method": "COPY",
+				"header": [],
+				"body": {},
+				"url": {
+					"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io",
+					"protocol": "https",
+					"host": [
+						"9c76407d-5b8d-4b22-99fb-8c47a85d9848",
+						"mock",
+						"pstmn",
+						"io"
+					]
+				},
+				"description": ""
+			},
+			"response": [
+				{
+					"id": "47494bfb-6d21-4f1f-ace0-f88e5e1ac05d",
+					"name": "COPY Request",
+					"originalRequest": {
+						"method": "COPY",
+						"header": [],
+						"body": {},
+						"url": {
+							"raw": "https://9c76407d-5b8d-4b22-99fb-8c47a85d9848.mock.pstmn.io",
+							"protocol": "https",
+							"host": [
+								"9c76407d-5b8d-4b22-99fb-8c47a85d9848",
+								"mock",
+								"pstmn",
+								"io"
+							]
+						}
+					},
+					"status": "OK",
+					"code": 200,
+					"_postman_previewlanguage": "json",
+					"_postman_previewtype": "text",
+					"header": [
+						{
+							"key": "Access-Control-Allow-Credentials",
+							"value": "",
+							"name": "Access-Control-Allow-Credentials",
+							"description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials."
+						},
+						{
+							"key": "Access-Control-Allow-Headers",
+							"value": "",
+							"name": "Access-Control-Allow-Headers",
+							"description": "Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request."
+						},
+						{
+							"key": "Access-Control-Allow-Methods",
+							"value": "",
+							"name": "Access-Control-Allow-Methods",
+							"description": "Specifies the method or methods allowed when accessing the resource. This is used in response to a preflight request."
+						},
+						{
+							"key": "Access-Control-Allow-Origin",
+							"value": "*",
+							"name": "Access-Control-Allow-Origin",
+							"description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."
+						},
+						{
+							"key": "Access-Control-Expose-Headers",
+							"value": "",
+							"name": "Access-Control-Expose-Headers",
+							"description": "Lets a server whitelist headers that browsers are allowed to access."
+						},
+						{
+							"key": "Connection",
+							"value": "keep-alive",
+							"name": "Connection",
+							"description": "Options that are desired for the connection"
+						},
+						{
+							"key": "Content-Encoding",
+							"value": "gzip",
+							"name": "Content-Encoding",
+							"description": "The type of encoding used on the data."
+						},
+						{
+							"key": "Content-Length",
+							"value": "59",
+							"name": "Content-Length",
+							"description": "The length of the response body in octets (8-bit bytes)"
+						},
+						{
+							"key": "Content-Type",
+							"value": "application/json; charset=utf-8",
+							"name": "Content-Type",
+							"description": "The mime type of this content"
+						},
+						{
+							"key": "Date",
+							"value": "Mon, 05 Feb 2018 07:48:41 GMT",
+							"name": "Date",
+							"description": "The date and time that the message was sent"
+						},
+						{
+							"key": "ETag",
+							"value": "W/\"af-MmpVeTvfnSW88c4riXD0uw\"",
+							"name": "ETag",
+							"description": "An identifier for a specific version of a resource, often a message digest"
+						},
+						{
+							"key": "Server",
+							"value": "nginx",
+							"name": "Server",
+							"description": "A name for the server"
+						},
+						{
+							"key": "Vary",
+							"value": "Accept-Encoding",
+							"name": "Vary",
+							"description": "Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."
+						}
+					],
+					"cookie": [],
+					"responseTime": 378,
+					"body": "{\n    \"status\": 200,\n    \"method\": \"COPY\"\n}"
+				}
+			]
+		},
+		{
+			"name": "POST binary file",
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "Content-Type",
+						"name": "Content-Type",
+						"value": "application/x-www-form-urlencoded",
+						"type": "text"
+					}
+				],
+				"body": {
+					"mode": "file",
+					"file": {}
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				}
+			},
+			"response": []
+		},
+		{
+			"name": "POST form data with file",
+			"request": {
+				"method": "POST",
+				"header": [],
+				"body": {
+					"mode": "formdata",
+					"formdata": [
+						{
+							"key": "test-file",
+							"type": "file",
+							"src": ""
+						}
+					]
+				},
+				"url": {
+					"raw": "https://postman-echo.com/post",
+					"protocol": "https",
+					"host": [
+						"postman-echo",
+						"com"
+					],
+					"path": [
+						"post"
+					]
+				}
+			},
+			"response": []
+		}
+	]
+}
\ No newline at end of file
diff --git a/codegens/php-pecl-http/test/unit/package.test.js b/codegens/php-pecl-http/test/unit/package.test.js
new file mode 100644
index 0000000..367a2ef
--- /dev/null
+++ b/codegens/php-pecl-http/test/unit/package.test.js
@@ -0,0 +1,28 @@
+var expect = require('chai').expect,
+    path = require('path'),
+    package = require('../../package.json');
+
+describe('package.json', function () {
+
+    it('should have com_postman_plugin object with valid properties', function () {
+        expect(package).to.have.property('com_postman_plugin');
+        expect(package.com_postman_plugin.type).to.equal('code_generator');
+        expect(package.com_postman_plugin.lang).to.be.a('string');
+        expect(package.com_postman_plugin.variant).to.be.a('string');
+        expect(package.com_postman_plugin.syntax_mode).to.be.a('string');
+    });
+
+    it('should have main property with relative path to object with convert property', function () {
+        var languageModule; expect(package.main).to.be.a('string');
+
+        try {
+            languageModule = require(path.resolve('.', package.main));
+        }
+        catch (error) {
+            console.error(error);
+        }
+        expect(languageModule).to.be.a('object');
+        expect(languageModule.convert).to.be.a('function');
+    });
+
+});