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(9mo ago)1461.4M—7.8%215MITPHPPHP &gt;=7.3CI failing

Since Feb 26Pushed 9mo 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 2w 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

55

—

FairBetter than 97% of packages

Maintenance57

Moderate activity, may be stable

Popularity56

Moderate usage in the ecosystem

Community24

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

281d 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://avatars.githubusercontent.com/u/8586747?v=4)[Paul](/maintainers/pcrov)[@pcrov](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[salsify/json-streaming-parser

A streaming parser for JSON in PHP.

7787.2M22](/packages/salsify-json-streaming-parser)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[clue/ndjson-react

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

15987.6M35](/packages/clue-ndjson-react)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[bcncommerce/json-stream

A bundle of tools to work with JSON in PHP

652.4M3](/packages/bcncommerce-json-stream)

PHPackages © 2026

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