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

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

networkteam/json-seq
====================

JSON Text Sequences (RFC7464) encoder and decoder

v1.1.0(2y ago)227.4k—3.8%MITPHPPHP ^7.1 || ^8.0

Since Jul 3Pushed 2y agoCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Package
=======

[](#package)

[![Latest Version](https://camo.githubusercontent.com/777561bf3615cc9709649f2444ef7bad28432cb960bbf4352801663f69f50c3a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e6574776f726b7465616d2f6a736f6e2d7365712e7376673f7374796c653d666c61742d737175617265)](https://github.com/networkteam/json-seq/releases)[![Build Status](https://camo.githubusercontent.com/e173e910d7bc05169d7125b3b3c29e6a17bc6ae5486de63cca57531acff22594/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6574776f726b7465616d2f6a736f6e2d7365712e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/networkteam/json-seq)[![Code Coverage](https://camo.githubusercontent.com/50d0b17d07da4c53aa5f6e0dfc109fec4a21d5e5d004b018255bfc054574ff54/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6574776f726b7465616d2f6a736f6e2d7365712e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/networkteam/json-seq)[![Quality Score](https://camo.githubusercontent.com/a66e011cb1da7c4b7d06948be5a9afef4b3321b95ff0bc4127611f3a00a479f0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6574776f726b7465616d2f6a736f6e2d7365712e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/networkteam/json-seq)[![Total Downloads](https://camo.githubusercontent.com/e80a155a431db0122adf87f9acaca49bca4ff959ff1713c12ba49871c4e630c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6574776f726b7465616d2f6a736f6e2d7365712e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/networkteam/json-seq)

**JSON Text Sequences (RFC7464) encoder and decoder for PHP**

JSON Text Sequences define a streamable JSON encoding and parsing based on a delimiter for multiple JSON encoded texts.

See  for the JSON Text Sequences RFC.

Install
-------

[](#install)

Via Composer

```
$ composer require networkteam/json-seq
```

Usage
-----

[](#usage)

Encoding data in JSON Text Sequences:

```
$stringWriter = new StringWriter();
$encoder = new Encoder($stringWriter);

$encoder->emit(['id' => '1', ...]);
$encoder->emit(['id' => '2', ...]);

$result = $stringWriter->getString();
```

Decoding JSON Text Sequences from a string:

```
$jsonTexts = "\x1E{...}\x0A\x1E{...}\x0A";

$decoder = new StringDecoder();
foreach ($decoder->decode($jsonTexts) as $data) {
    // process $data
}
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 90.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 ~632 days

Total

4

Last Release

981d ago

PHP version history (2 changes)v1.0-alphaPHP ^7.1

v1.1.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/790179df9a15d9175b9ec8fdc2df5c4c660a52a4fb6d429376cf66b66b0a595c?d=identicon)[chlu](/maintainers/chlu)

![](https://www.gravatar.com/avatar/7cbf52f8dce27737b73b79ac2c958434339f3dcf704b17a040956ed9a33eb4ef?d=identicon)[networkteam](/maintainers/networkteam)

---

Top Contributors

[![hlubek](https://avatars.githubusercontent.com/u/33351?v=4)](https://github.com/hlubek "hlubek (10 commits)")[![mhsdesign](https://avatars.githubusercontent.com/u/85400359?v=4)](https://github.com/mhsdesign "mhsdesign (1 commits)")

---

Tags

json

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k316.9M612](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30422.2M45](/packages/colinodell-json5)[clue/ndjson-react

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

15467.7M16](/packages/clue-ndjson-react)

PHPackages © 2026

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