{"_id":"phpjs","_rev":"151397","name":"phpjs","description":"php.js offers community built php functions in javascript","dist-tags":{"latest":"1.3.2"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"time":{"modified":"2021-06-03T11:32:54.000Z","created":"2012-06-01T13:01:43.905Z","1.3.2":"2014-03-05T09:20:13.675Z","1.2.2":"2014-03-04T10:45:25.024Z","1.1.2":"2014-03-04T10:43:52.122Z","1.0.2":"2014-01-17T16:22:58.811Z","1.0.1":"2014-01-17T16:14:01.520Z","1.0.0":"2014-01-17T16:07:11.380Z","0.0.1":"2012-06-01T13:01:43.905Z"},"users":{"ullzegdath":true,"pandao":true,"pdedkov":true,"hyokosdeveloper":true,"wangnan0610":true,"guzgarcia":true,"kimjoseph95":true,"yikuo":true,"ys_sidson_aidson":true,"touskar":true},"author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"versions":{"1.3.2":{"name":"phpjs","version":"1.3.2","description":"php.js offers community built php functions in javascript","homepage":"http://phpjs.org","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"engines":{"node":">= 0.8.0"},"dependencies":{"cli":"0.4.4-2","glob":"3.2.1","send":"0.1.0","deep-equal":"0.1.2","js-beautify":"1.4.2","underscore":"1.5.2","mocha":"1.17.0"},"keywords":["php","js","phpjs"],"bugs":{"url":"https://github.com/kvz/phpjs/issues"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"scripts":{"test":"make test"},"_id":"phpjs@1.3.2","dist":{"shasum":"5c7bac55d1de09e80542022593161bd980348abb","size":480566,"noattachment":false,"key":"/phpjs/-/phpjs-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-1.3.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1394011213675,"_cnpm_publish_time":1394011213675,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"},"1.2.2":{"name":"phpjs","version":"1.2.2","description":"php.js offers community built php functions in javascript","homepage":"http://phpjs.org","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"engines":{"node":">= 0.8.0"},"dependencies":{"cli":"0.4.4-2","glob":"3.2.1","send":"0.1.0","deep-equal":"0.1.2","js-beautify":"1.4.2","underscore":"1.5.2","mocha":"1.17.0"},"keywords":["php","js","phpjs"],"bugs":{"url":"https://github.com/kvz/phpjs/issues"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"scripts":{"test":"make test"},"_id":"phpjs@1.2.2","dist":{"shasum":"797ed150a6bab14c1f426ad10e00c7aedf88b876","size":3559956,"noattachment":false,"key":"/phpjs/-/phpjs-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-1.2.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1393929925024,"_cnpm_publish_time":1393929925024,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"},"1.1.2":{"name":"phpjs","version":"1.1.2","description":"php.js offers community built php functions in javascript","homepage":"http://phpjs.org","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"engines":{"node":">= 0.8.0"},"dependencies":{"cli":"0.4.4-2","glob":"3.2.1","send":"0.1.0","deep-equal":"0.1.2","js-beautify":"1.4.2","underscore":"1.5.2","mocha":"1.17.0"},"keywords":["php","js","phpjs"],"bugs":{"url":"https://github.com/kvz/phpjs/issues"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"scripts":{"test":"make test"},"_id":"phpjs@1.1.2","dist":{"shasum":"387a3c4fc14de082c56f4b7283c5f422185f41ac","size":3559895,"noattachment":false,"key":"/phpjs/-/phpjs-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-1.1.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1393929832122,"_cnpm_publish_time":1393929832122,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"},"1.0.2":{"name":"phpjs","version":"1.0.2","description":"php.js offers community built php functions in javascript","homepage":"http://phpjs.org","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"engines":{"node":">= 0.8.0"},"dependencies":{"cli":"~0.4.4-2","glob":"~3.2.1","send":"~0.1.0","deep-equal":"~0.1.2"},"keywords":["cli","console","test","phpjs"],"bugs":{"url":"https://github.com/kvz/phpjs/issues"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"readmeFilename":"README.md","scripts":{"test":"make test"},"_id":"phpjs@1.0.2","dist":{"shasum":"0a0f6008e0830b5423bce8146928e5619d438b55","size":3353873,"noattachment":false,"key":"/phpjs/-/phpjs-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1389975778811,"_cnpm_publish_time":1389975778811,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"},"1.0.1":{"name":"phpjs","version":"1.0.1","description":"php.js offers community built php functions in javascript","homepage":"http://phpjs.org","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"engines":{"node":">= 0.8.0"},"dependencies":{"cli":"~0.4.4-2","glob":"~3.2.1","send":"~0.1.0","deep-equal":"~0.1.2"},"keywords":["cli","console","test","phpjs"],"bugs":{"url":"https://github.com/kvz/phpjs/issues"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"readmeFilename":"README.md","scripts":{"test":"make test"},"_id":"phpjs@1.0.1","dist":{"shasum":"3528a477a7d7c4d2345015cafdd4326223ffc4f3","size":3353969,"noattachment":false,"key":"/phpjs/-/phpjs-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1389975241520,"_cnpm_publish_time":1389975241520,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"},"1.0.0":{"name":"phpjs","version":"1.0.0","description":"php.js offers community built php functions in javascript","homepage":"http://phpjs.org","author":{"name":"Kevin van Zonneveld","email":"kevin@vanzonneveld.net"},"engines":{"node":">= 0.8.0"},"dependencies":{"cli":"~0.4.4-2","glob":"~3.2.1","send":"~0.1.0","deep-equal":"~0.1.2"},"keywords":["cli","console","test","phpjs"],"bugs":{"url":"https://github.com/kvz/phpjs/issues"},"repository":{"type":"git","url":"https://github.com/kvz/phpjs.git"},"readmeFilename":"README.md","scripts":{"test":"make test"},"_id":"phpjs@1.0.0","dist":{"shasum":"053d9b907979dfa5daaf4f43c5a6b125cf9555d0","size":3354561,"noattachment":false,"key":"/phpjs/-/phpjs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kvz","email":"kevin@vanzonneveld.net"},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1389974831380,"_cnpm_publish_time":1389974831380,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"},"0.0.1":{"author":{"name":"Alan Hoffmeister","email":"contato@cranic.com.br","url":"https://github.com/cranic"},"name":"phpjs","description":"PHP.js port for Node.js","version":"0.0.1","homepage":"https://github.com/cranic/node-phpjs","repository":{"type":"git","url":"git://github.com/cranic/node-phpjs.git"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"cranic","email":"contato@cranic.com.br"},"_id":"phpjs@0.0.1","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"f4ff538e3565541f7547a5be266258a74bad2965","size":211604,"noattachment":false,"key":"/phpjs/-/phpjs-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/phpjs/download/phpjs-0.0.1.tgz"},"scripts":{},"maintainers":[{"name":"kvz","email":"kevin@vanzonneveld.net"}],"directories":{},"publish_time":1338555703905,"_cnpm_publish_time":1338555703905,"_hasShrinkwrap":false,"deprecated":"phpjs is no longer maintained. Please use Locutus instead: http://locutus.nl"}},"readme":"# php.js\n\n<!-- badges/ -->\n[![Build Status](https://secure.travis-ci.org/kvz/phpjs.png?branch=master)](http://travis-ci.org/kvz/phpjs \"Check this project's build status on TravisCI\")\n[![NPM version](http://badge.fury.io/js/phpjs.png)](https://npmjs.org/package/phpjs \"View this project on NPM\")\n[![Dependency Status](https://david-dm.org/kvz/phpjs.png?theme=shields.io)](https://david-dm.org/kvz/phpjs)\n[![Development Dependency Status](https://david-dm.org/kvz/phpjs/dev-status.png?theme=shields.io)](https://david-dm.org/kvz/phpjs#info=devDependencies)\n<!-- /badges -->\n\nphp.js is a resource that offers community-built JavaScript alternatives to PHP functions.\n\nMore info at: http://phpjs.org/about\n\n## Npm\n\n```bash\n$ mkdir test && cd $_\n$ npm install phpjs\n$ $EDITOR try.js\n```\n\n```javascript\nvar php = require('phpjs');\n\nphp.echo(php.sprintf('Hey, %s : )', 'you'));\nphp.echo(php.parse_url('mysql://kevin:abcd1234@example.com/databasename')['pass']);\nphp.echo(php.strtotime('2 januari 2012, 11:12:13 GMT'));\n```\n\n```bash\n$ node try.js\nHey, you : )\nabcd1234\n1325502733\n```\n\n## Testing\n\n\n### cli\n\n```bash\nmake test\n```\n\n```bash\nnode bin/phpjs.js --action test --name sort\nnode bin/phpjs.js --action test --category array\n```\n\n### Web\n\n```bash\nPORT=8080 node test/browser/server.js\n```\n\nPoint your webbrowser to http://localhost:8080\n\n\n## Sponsor development\n\n<!-- badges/ -->\n[![Gittip donate button](http://img.shields.io/gittip/kvz.png)](https://www.gittip.com/kvz/ \"Sponsor the development of phpjs via Gittip\")\n[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](https://flattr.com/submit/auto?user_id=kvz&url=https://github.com/kvz/phpjs&title=phpjs&language=&tags=github&category=software \"Sponsor the development of phpjs via Flattr\")\n[![PayPal donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kevin%40vanzonneveld%2enet&lc=NL&item_name=Open%20source%20donation%20to%20Kevin%20van%20Zonneveld&currency_code=USD&bn=PP-DonationsBF%3abtn_donate_SM%2egif%3aNonHosted \"Sponsor the development of phpjs via Paypal\")\n[![BitCoin donate button](http://img.shields.io/bitcoin/donate.png?color=yellow)](https://coinbase.com/checkouts/19BtCjLCboRgTAXiaEvnvkdoRyjd843Dg2 \"Sponsor the development of phpjs via BitCoin\")\n<!-- /badges -->\n","_attachments":{},"homepage":"http://phpjs.org","bugs":{"url":"https://github.com/kvz/phpjs/issues"}}