PHPackages                             pcrov/jsonreader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. pcrov/jsonreader

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

pcrov/jsonreader
================

JSON Pull Parser

1.0.4(6mo ago)1451.2M↑21.2%215MITPHPPHP &gt;=7.3

Since Feb 26Pushed 6mo ago8 watchersCompare

[ Source](https://github.com/pcrov/JsonReader)[ Packagist](https://packagist.org/packages/pcrov/jsonreader)[ Docs](https://github.com/pcrov/jsonreader)[ RSS](/packages/pcrov-jsonreader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (19)Used By (5)

JsonReader
==========

[](#jsonreader)

[![CI Status](https://github.com/pcrov/JsonReader/workflows/CI/badge.svg)](https://github.com/pcrov/JsonReader/actions?query=workflow%3ACI)[![License](https://camo.githubusercontent.com/32130a4115bf04328367945522ed91e3c56e31660a2391ac271f0b77d8b4bb35/68747470733a2f2f706f7365722e707567782e6f72672f7063726f762f6a736f6e7265616465722f6c6963656e7365)](https://github.com/pcrov/JsonReader/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/0a53abb8a8bfe26840142f3f1ec29c2e767068e7208a2caaf820776b8fd56071/68747470733a2f2f706f7365722e707567782e6f72672f7063726f762f6a736f6e7265616465722f762f737461626c65)](https://packagist.org/packages/pcrov/jsonreader)

This is a streaming pull parser - like [XMLReader](http://php.net/xmlreader) but for JSON.

Requirements
------------

[](#requirements)

PHP 7.3 or higher with the Intl extension.

Installation
------------

[](#installation)

To install with composer:

```
composer require pcrov/jsonreader
```

Usage
-----

[](#usage)

JsonReader's interface and behavior is very much like [XMLReader](http://php.net/xmlreader). If you've worked with that then this will feel familiar.

For [examples](https://github.com/pcrov/JsonReader/wiki/Examples) and [API documentation](https://github.com/pcrov/JsonReader/wiki/JsonReader-API) see the [wiki](https://github.com/pcrov/JsonReader/wiki).

Note
----

[](#note)

Only UTF-8 encoded JSON is supported. If you need to parse JSON in another encoding see [Handling Non UTF-8 Encodings](https://github.com/pcrov/JsonReader/wiki/Handling-Non-UTF-8-Encodings)on the [wiki](https://github.com/pcrov/JsonReader/wiki).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance68

Regular maintenance activity

Popularity56

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 98.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~208 days

Recently: every ~623 days

Total

18

Last Release

189d ago

Major Versions

0.8.0 → 1.0.02019-01-13

PHP version history (2 changes)0.1.0PHP ^7.0

1.0.1PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/de76478d90325fc47b29d5b59c35d7ead6eefb54162210ca01bdad9c8d6c522f?d=identicon)[pcrov](/maintainers/pcrov)

---

Top Contributors

[![pcrov](https://avatars.githubusercontent.com/u/8586747?v=4)](https://github.com/pcrov "pcrov (91 commits)")[![VladimirRebilly](https://avatars.githubusercontent.com/u/144002104?v=4)](https://github.com/VladimirRebilly "VladimirRebilly (1 commits)")

---

Tags

jsonparserphprfc8259streamingjsonparserstreamingpull

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pcrov-jsonreader/health.svg)

```
[![Health](https://phpackages.com/badges/pcrov-jsonreader/health.svg)](https://phpackages.com/packages/pcrov-jsonreader)
```

###  Alternatives

[salsify/json-streaming-parser

A streaming parser for JSON in PHP.

7766.7M15](/packages/salsify-json-streaming-parser)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15467.7M16](/packages/clue-ndjson-react)[bcncommerce/json-stream

A bundle of tools to work with JSON in PHP

642.2M3](/packages/bcncommerce-json-stream)[cerbero/json-parser

Zero-dependencies pull parser to read large JSON from any source in a memory-efficient way.

803474.6k5](/packages/cerbero-json-parser)[laktak/hjson

JSON for Humans. A configuration file format with relaxed syntax, fewer mistakes and more comments.

86233.7k12](/packages/laktak-hjson)[cerbero/json-objects

Extract objects from large JSON files, endpoints or streams while saving memory.

2229.3k](/packages/cerbero-json-objects)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
