simdjson

pecl install simdjson

Provides faster json decoding through simdjson bindings for PHP

Provides faster json decoding through simdjson bindings for PHP (Single Instruction, Multiple Data)

Maintainer

  • Tyson Andre (lead )

Details

Stars: 150
Issue openned: 14
Downloads: 13573
2.1.0
1 year ago
Version 2.1.0 change log


* Allow out of range 64-bit values in JSON integer syntax and allow floating point values outside of the max/min finite floating point values (i.e. parsing to +/- infinity).

This allows simdjson_decode() to be used as a replacement for json_decode() in more use cases.
* Return the correct value in simdjson_key_count() for JSON pointers to arrays/objects exceeding size 0xFFFFFF.
Previously, this would be limited to returning at most 0xFFFFFF(16777215).
* Throw 'SimdJsonException extends RuntimeException' instead of RuntimeException.
* Set the error code from simdjson as SimdJsonException->getCode()
* Expose error_code constants from simdjson as `SIMDJSON_ERR_$ERRCODENAME`

requires:

  • php >=7.0.0
  • pearinstaller >=1.4.3