• Stars
    star
    143
  • Rank 256,075 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A JSON pull parser for PHP

JsonReader

CI Status License Latest Stable Version

This is a streaming pull parser - like XMLReader but for JSON.

Requirements

PHP 7.3 or higher with the Intl extension.

Installation

To install with composer:

composer require pcrov/jsonreader

Usage

JsonReader's interface and behavior is very much like XMLReader. If you've worked with that then this will feel familiar.

For examples and API documentation see the wiki.

Note

Only UTF-8 encoded JSON is supported. If you need to parse JSON in another encoding see Handling Non UTF-8 Encodings on the wiki.