PHPackages                             cline/json - 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. cline/json

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

cline/json
==========

Memory-efficient pull parser for large JSON sources in Laravel and PHP applications.

1.0.0(1mo ago)00MITPHPPHP ^8.5.0CI passing

Since Jun 4Pushed 1mo agoCompare

[ Source](https://github.com/faustbrian/json)[ Packagist](https://packagist.org/packages/cline/json)[ RSS](/packages/cline-json/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/json/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/json/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/f2c814dd37cdacb259e4ec46e59b16cb3d2f25c46c16b0a627dbdf4f0c0a7ff9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f6a736f6e2e737667)](https://packagist.org/packages/cline/json)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/281ab58b1dc8f888d62bbab471f71e0cd09753927400d74b1f9f807162c77d4e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f6a736f6e2e737667)](https://packagist.org/packages/cline/json)

---

json
====

[](#json)

Memory-efficient pull parser for large JSON sources in Laravel and PHP applications.

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

[](#requirements)

- PHP 8.5+

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

[](#installation)

```
composer require cline/json
```

Quick Example
-------------

[](#quick-example)

```
use Cline\Json\JsonParser;

$records = JsonParser::parse(storage_path('app/records.json'))
    ->pointer('/data')
    ->toArray();
```

Documentation
-------------

[](#documentation)

- Consumer guide: [USAGE.md](USAGE.md)
- Benchmarking guide: [BENCHMARK.md](BENCHMARK.md)

Supported API Surface
---------------------

[](#supported-api-surface)

The stable, consumer-facing API is centered on:

- `Cline\Json\JsonParser`
- the `parseJson()` helper
- string-based pointer selection through `pointer()`, `pointers()`, `lazyPointer()`, and `lazyPointers()`
- decoder customization through `Cline\Json\Decoders\Decoder`, `JsonDecoder`, and `SimdjsonDecoder`
- package exceptions that implement `Cline\Json\Exceptions\JsonParserException`

Lazy traversal may yield nested `Cline\Json\Tokens\Parser` instances. That nested parser type is part of the lazy traversal contract.

Lower-level namespaces such as `Concerns\*`, `ValueObjects\*`, `Sources\StreamWrapper`, `Sources\JsonResource`, and most token support classes exist for implementation and integration purposes. They are autoloaded, but they are not the primary consumer API this package optimizes around.

Benchmarks
----------

[](#benchmarks)

The package ships with throughput and memory benchmarks. See [BENCHMARK.md](BENCHMARK.md) for when to use eager decode, eager parser materialization, and lazy/selective traversal.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/json/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

51d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (1 commits)")

---

Tags

phpjsonlaravelparser

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cline-json/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

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

6.2k543.5M2.7k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k46](/packages/neuron-core-neuron-ai)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[oat-sa/tao-core

TAO core extension

65143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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