Via Composer
$ composer install
$ php sample.php
The application will output a few encoding results for
- a resource with no relationships
- a resource with included relationships
- sparse and field set filters usage sample
- top level links and meta information usage sample
For more details see the app source code
This application includes performance test as well. It can be run with default parameters
$ php sample.php -t
or with execution time measurement and specified number of iterations
$ time php sample.php -t=10000