Simple library for accessing PHP data structures with JSON Pointers (RFC 6901)
This library implements the RFC 6901 for PHP. It is possible to
parse a path (e.g.
/some/path) or create the
JsonPointer object from array (e.g.
There are several other good libraries (
) for parsing json-pointers, but none of
them was able to access other php structures besides default arrays. With different accessors, which are part of this
library, you can apply json-pointers to either arrays or also plain objects. Custom accessors can simply be created
on your own., (*2)
To install this library, run the command below and you will get the latest version:, (*3)
composer require chili-labs/json-pointer
The documentation is work in progress., (*4)
To run the test suite, you need composer., (*5)
composer install phpunit
JSONPointer is licensed under the MIT license., (*6)