To install json2php you could clone the project from Github or use NPM to install it.
$ npm install json2php
Convert JSON to PHP representation
When the content is just a string the output will be the same string.
// => 'Hello World!'
Numbers are the same.
// => 123
undefined are returned as
// => array(1, 2, 3)
// => array('a' => 1, 'b' => 2, 'c' => 'text')
// => null
To run test we use
mocha framework. There is a
cake task for that.
$ cake test
$ npm test
But in any case you will depend on
$ coffee -c -b -o ./lib src/json2php.coffee