pcrov/jsonreader

JSON Pull Parser

Maintainers

👁 pcrov

Package info

github.com/pcrov/JsonReader

Homepage

pkg:composer/pcrov/jsonreader

Statistics

Installs: 1 318 991

Dependents: 7

Suggesters: 0

Stars: 146

Open Issues: 0

1.0.4 2025-11-11 08:52 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 4d8483a62acb4595886a3ffa20bbe38a602f0544

  • Paul Crovella

jsonparserstreamingpull

This package is auto-updated.

Last update: 2026-06-11 09:55:56 UTC


README

👁 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.