Skip to content

remorhaz/php-json-data

Repository files navigation

PHP JSON Data Accessors

Latest Stable Version License Build Status Code Climate Test Coverage

There are three classes of data accessors: readers, selectors and writers.

  • Readers implement \Remorhaz\JSON\Data\ReaderInterface that provides basic read-only access to associated data: type checks, export, etc.
  • Selectors extend readers and implement \Remorhaz\JSON\Data\SelectorInterface that allows to switch data by moving internal cursor step by step deeper into JSON structures.
  • Writers extend selectors and implement \Remorhaz\JSON\Data\WriterInterface that allows modification of currently selected data.

You can use Reference/Reader, Reference/Selector and Reference/Writer classes that work with native PHP structures by reference or implement your own accessors.

Documentation

Known issues

  1. Due to the restriction of PHP objects in versions before 7.1, it is impossible to access "" (empty string) property by reference, so it is disabled in Reference/* accessors.

About

JSON Data Accessors

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published