Download the PHP package joelwurtz/json-stream without Composer

On this page you can find all versions of the php package joelwurtz/json-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package json-stream

json_stream

PHP extension for lazy, streaming JSON decoding.

$source may be a string, a stream resource, an array of string chunks, or any Traversable yielding string chunks (e.g. a Generator). Nothing is read from the source until the first access on the returned JsonStream\Document.

For environments where the extension cannot be installed, a separately installable pure-PHP fallback is available as joelwurtz/json-stream-polyfill.

$depth has json_decode() semantics (maximum nesting depth, default 512, must be greater than 0); exceeding it throws JsonException with JSON_ERROR_DEPTH at the access that reaches the too-deep value.

$options accepts the relevant JSON_* flags (JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE) plus:

Status: the lazy engine is live — a resumable simdjson-style SIMD structural indexer (AVX2/SSSE3/SSE2 on x86_64, NEON/PMULL on aarch64, scalar fallback) feeds a three-state field model (unread → buffered span → parsed zval). Only the accessed path is ever materialized: sibling fields are recorded as byte spans, nested containers become lazy child documents sharing the parser state. See PLAN.md for the roadmap and the documented divergences from json_decode.

Install

With PIE (once published on Packagist):

Or build from source:

Polyfill

A pure-PHP polyfill of the full API lives in polyfill/: require polyfill/bootstrap.php (or use the package's Composer files autoload) and json_stream_decode() / JsonStream\Document work without the extension — much slower, but with the same lazy and constant-memory (transient) behavior. See polyfill/README.md for limits.


All versions of json-stream with dependencies

PHP Build Version
Package Version
Requires php Version >= 8.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joelwurtz/json-stream contains the following files

Loading the files please wait ...