PHPackages                             michaelalexeevweb/php-json-chunk - 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. michaelalexeevweb/php-json-chunk

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

michaelalexeevweb/php-json-chunk
================================

Read JSON arrays from files and return chunked data.

1.0.5(1mo ago)15↓100%MITPHPPHP &gt;=8.1CI passing

Since Mar 13Pushed 1mo agoCompare

[ Source](https://github.com/michaelalexeevweb/php-json-chunk)[ Packagist](https://packagist.org/packages/michaelalexeevweb/php-json-chunk)[ RSS](/packages/michaelalexeevweb-php-json-chunk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

PhpJsonChunk
============

[](#phpjsonchunk)

[![MIT License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![CI](https://github.com/michaelalexeevweb/php-json-chunk/actions/workflows/ci.yml/badge.svg)](https://github.com/michaelalexeevweb/php-json-chunk/actions/workflows/ci.yml)

Simple PHP library to stream JSON arrays from files and return plain data, iterators, generators, or chunked arrays.

Install
-------

[](#install)

```
composer require michaelalexeevweb/php-json-chunk:^1.0.5
```

Why streaming
-------------

[](#why-streaming)

`JsonChunkReader` reads the file as a stream. It does not load the full JSON file into memory, so it can work with large files (100MB+).

Usage
-----

[](#usage)

```
