egeloen/json-builder
PHP 5.6+ library to build JSON using Symfony PropertyAccess paths. Set nested values, arrays, and raw/unescaped values while retaining control over escaping. Produces JSON strings from a fluent builder API with strong test coverage.
The most easy way to set up the project is to install Docker and Docker Composer and build the project.
The configuration is shipped with a distribution environment file allowing you to customize your IDE and XDebug settings as well as your current user/group ID:
$ cp .env.dist .env
The most important part is the USER_ID and GROUP_ID which should match your current user/group.
Once you have configured your environment, you can build the project:
$ docker-compose build
Install the dependencies via Composer:
$ docker-compose run --rm php composer install
To run the test suite, you can use:
$ docker-compose run --rm php vendor/bin/phpunit
If you want to run the test suite against HHVM, you can use:
$ docker-compose run --rm hhvm vendor/bin/phpunit
If you want to use XDebug, make sure you have fully configured your .env file and use:
$ docker-compose run --rm -e XDEBUG=1 php vendor/bin/phpunit
How can I help you explore Laravel packages today?