Download the PHP package docteurklein/json-chunks without Composer
On this page you can find all versions of the php package docteurklein/json-chunks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download docteurklein/json-chunks
More information about docteurklein/json-chunks
Files in docteurklein/json-chunks
Download docteurklein/json-chunks
More information about docteurklein/json-chunks
Files in docteurklein/json-chunks
Vendor docteurklein
Package json-chunks
Short Description JSON encoder using generators to stream
License MIT
Package json-chunks
Short Description JSON encoder using generators to stream
License MIT
Please rate this library. Is it a good library?
Informations about the package json-chunks
json-chunks
What ?
A php library that allows to stream chunks of json documents.
How ?
It takes advantage of php generators and the native json_encode
function.
To start streaming parts of a document, pass a function that yield
serializable values.
Note: You can nest multiple generators together.
Example
Note: more specs.
Tradeoffs
- This library won't try to pretty print the streamed content. It provides a
pretty
option for debug purposes, but that will buffer the whole output and thus won't stream anymore. - Arrays containing both numeric and string indexes will be encoded to a json object or array depending on the type of the first key.
All versions of json-chunks with dependencies
PHP Build Version
Package Version
No informations.
The package docteurklein/json-chunks contains the following files
Loading the files please wait ....