{"id":44022002,"url":"https://github.com/networkteam/json-seq","last_synced_at":"2026-02-07T16:36:10.952Z","repository":{"id":57025708,"uuid":"139565210","full_name":"networkteam/json-seq","owner":"networkteam","description":"JSON Text Sequences (RFC7464) encoder and decoder for PHP","archived":false,"fork":false,"pushed_at":"2023-09-11T07:55:32.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-11T15:26:35.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networkteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-03T10:11:45.000Z","updated_at":"2025-10-19T03:51:58.000Z","dependencies_parsed_at":"2022-08-23T16:20:33.757Z","dependency_job_id":null,"html_url":"https://github.com/networkteam/json-seq","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/networkteam/json-seq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkteam%2Fjson-seq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkteam%2Fjson-seq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkteam%2Fjson-seq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkteam%2Fjson-seq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networkteam","download_url":"https://codeload.github.com/networkteam/json-seq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkteam%2Fjson-seq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29199916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T16:28:23.579Z","status":"ssl_error","status_checked_at":"2026-02-07T16:28:22.566Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-07T16:36:10.857Z","updated_at":"2026-02-07T16:36:10.941Z","avatar_url":"https://github.com/networkteam.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package\n\n[![Latest Version](https://img.shields.io/github/release/networkteam/json-seq.svg?style=flat-square)](https://github.com/networkteam/json-seq/releases)\n[![Build Status](https://img.shields.io/travis/networkteam/json-seq.svg?style=flat-square)](https://travis-ci.org/networkteam/json-seq)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/networkteam/json-seq.svg?style=flat-square)](https://scrutinizer-ci.com/g/networkteam/json-seq)\n[![Quality Score](https://img.shields.io/scrutinizer/g/networkteam/json-seq.svg?style=flat-square)](https://scrutinizer-ci.com/g/networkteam/json-seq)\n[![Total Downloads](https://img.shields.io/packagist/dt/networkteam/json-seq.svg?style=flat-square)](https://packagist.org/packages/networkteam/json-seq)\n\n**JSON Text Sequences (RFC7464) encoder and decoder for PHP**\n\nJSON Text Sequences define a streamable JSON encoding and parsing based on a delimiter for multiple JSON encoded texts.\n\nSee https://tools.ietf.org/html/rfc7464 for the JSON Text Sequences RFC.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require networkteam/json-seq\n```\n\n\n## Usage\n\nEncoding data in JSON Text Sequences: \n\n``` php\n$stringWriter = new StringWriter();\n$encoder = new Encoder($stringWriter);\n\n$encoder-\u003eemit(['id' =\u003e '1', ...]);\n$encoder-\u003eemit(['id' =\u003e '2', ...]);\n\n$result = $stringWriter-\u003egetString();\n```\n\nDecoding JSON Text Sequences from a string:\n\n``` php\n$jsonTexts = \"\\x1E{...}\\x0A\\x1E{...}\\x0A\";\n\n$decoder = new StringDecoder();\nforeach ($decoder-\u003edecode($jsonTexts) as $data) {\n    // process $data\n}\n```\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkteam%2Fjson-seq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworkteam%2Fjson-seq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkteam%2Fjson-seq/lists"}