PHPackages                             tkzo/huge-json-collection-streaming-parser - 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. tkzo/huge-json-collection-streaming-parser

ActiveLibrary

tkzo/huge-json-collection-streaming-parser
==========================================

A streaming parser for huge JSON in PHP.

v1.0.7(4y ago)2941MITPHPPHP ^7.0 || ^8.0CI failing

Since May 7Pushed 4y agoCompare

[ Source](https://github.com/1105-6601/huge-json-collection-streaming-parser)[ Packagist](https://packagist.org/packages/tkzo/huge-json-collection-streaming-parser)[ RSS](/packages/tkzo-huge-json-collection-streaming-parser/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Huge JSON collection streaming parser for PHP
=============================================

[](#huge-json-collection-streaming-parser-for-php)

[![Build Status](https://camo.githubusercontent.com/b93cd29d39e11d93df55d36d038d729f7f74dbe8fdad01e19bb2d4544a383251/68747470733a2f2f7472617669732d63692e6f72672f313130352d363630312f687567652d6a736f6e2d636f6c6c656374696f6e2d73747265616d696e672d7061727365722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/1105-6601/huge-json-collection-streaming-parser)[![GitHub tag](https://camo.githubusercontent.com/059717874810b0a58836959960c1d0641bd55db9677640d2863cf385d4e738de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f313130352d363630312f687567652d6a736f6e2d636f6c6c656374696f6e2d73747265616d696e672d7061727365722e7376673f6c6162656c3d6c6174657374)](https://packagist.org/packages/tkzo/huge-json-collection-streaming-parser)[![Packagist](https://camo.githubusercontent.com/53396a6014c70ba19fe405fb629cbdd8999b9da8032dc487ed2a51c11e867c33/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f313130352d363630312f687567652d6a736f6e2d636f6c6c656374696f6e2d73747265616d696e672d7061727365722e737667)](https://packagist.org/packages/tkzo/huge-json-collection-streaming-parser)[![Minimum PHP Version](https://camo.githubusercontent.com/ed3d5f316ab7046990f8dbe388251ead80e0b003b22814d531ddbfc332a20cf1/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/9844c922180a82e08108419eda680b261124f8f4b75d22bed9d035950273f5e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f313130352d363630312f687567652d6a736f6e2d636f6c6c656374696f6e2d73747265616d696e672d7061727365722e737667)](https://packagist.org/packages/tkzo/huge-json-collection-streaming-parser)

This package is streaming parser for processing huge JSON documents. Can load the objects of JSON documents which is an array of objects one by one. The structure of JSON documents needs to be the following structure.

e.g.)

```
[
  {
    "id": 1,
    "name": "foo",

    ...

  },
  {
    "id": 2,
    "name": "bar",

    ...

  },

  ...

]
```

This package is compliant with [PSR-4](http://www.php-fig.org/psr/4/), [PSR-1](http://www.php-fig.org/psr/1/), and [PSR-2](http://www.php-fig.org/psr/2/). If you notice compliance oversights, please send a patch via pull request.

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

[](#installation)

To install `HugeJsonCollectionStreamingParser` you can either clone this repository or you can use composer.

```
composer require tkzo/huge-json-collection-streaming-parser

```

Usage
-----

[](#usage)

```
$filePath = 'path/to/huge-json-file.json';

$parser = new \HugeJsonCollectionStreamingParser\Parser($filePath);

while ($parser->next()) {
    $item = $parser->current();

    // do anything...
}
```

There is a complete example of this in `example/example.php`.

License
-------

[](#license)

[MIT License](http://mit-license.org/)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~122 days

Recently: every ~80 days

Total

8

Last Release

1712d ago

PHP version history (3 changes)v1.0.0PHP ^7.0

v1.0.2PHP ^7.2

v1.0.7PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ceb2491fb482d4b7241bef9b4893bbb13dd75d430d53fcf93bb0dbd07fff3fb1?d=identicon)[1105-6601](/maintainers/1105-6601)

---

Top Contributors

[![yzfhiro](https://avatars.githubusercontent.com/u/150792021?v=4)](https://github.com/yzfhiro "yzfhiro (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tkzo-huge-json-collection-streaming-parser/health.svg)

```
[![Health](https://phpackages.com/badges/tkzo-huge-json-collection-streaming-parser/health.svg)](https://phpackages.com/packages/tkzo-huge-json-collection-streaming-parser)
```

PHPackages © 2026

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