JSON builder with escaping control for PHP 5.3+

Installs: 312 451

Dependents: 3

Stars: 5

Watchers: 1

Forks: 1

Open Issues: 1

Language: PHP

2.0.0 2014-12-29 20:25 UTC


Build Status Coverage Status Scrutinizer Code Quality Dependency Status

Latest Stable Version Latest Unstable Version Total Downloads License

The Ivory JSON builder is a PHP 5.3+ library allowing you to build your JSON through the Symfony2 PropertyAccess component while keeping the control of the value escaping.

use Ivory\JsonBuilder\JsonBuilder;

$builder = new JsonBuilder();
$json = $builder
    ->setValues(array('foo' => array('bar')))
    ->setValue('[baz]', 'bat', false)

// {"foo":["bar"],"baz":bat}
echo $json;


  1. Installation
  2. Usage


The library is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.


We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR!


The Ivory JSON Builder is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.