halaxa/json-machine
Efficient, easy-to-use, and fast PHP JSON stream parser observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 75
- Release rhythm 60
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 21
- age_days: 2858
- days_rel: 271
- days_push: 152
- n_releases_24m: 8
Adoption not part of the score
1326 stars · 74 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
JSON Machine is a PHP library for memory-efficient streaming parsing of large JSON files and streams. It provides a simple iterator-based API as a drop-in replacement for json_decode when handling documents too big to fit in memory.
Use cases
- parse large json files without exhausting memory
- stream json api responses in php
- iterate over huge json arrays item by item
- extract a subtree from a big json document with json pointer
- process 500MB json export files
When to choose
- you need to parse JSON documents larger than available memory in PHP
- you want a simple foreach-based API over big JSON files or HTTP streams
- you need to parse streaming JSON responses from Guzzle or Symfony HttpClient
When to avoid
- you need random access to JSON items by index
- your JSON documents are small enough for json_decode
- you are not working in PHP
Facets
library · maturity stable
parser serialization streaming parsers files developer-tools php cli json-streaming memory-efficient json-pointer large-files data-engineering
1 source
- readme: https://github.com/halaxa/json-machine · fetched 2026-08-28 · ac7b1b85548d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| halaxa/json-machine | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="halaxa/json-machine")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem