PackageTrack
Sign in Get early access

pcrov/jsonreader

JSON Pull Parser

1.0.4 1.4M downloads/mo #4577 most downloaded on Packagist pcrov/JsonReader

What this package is like to depend on

Last release 9 months ago

11 Nov 2025

Release timing varies

gaps range from 8 days to 2.6 years

Some releases are documented

notes for 10 of 18 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

18 releases · first in 2016

1 release in the last 12 months

see the full history below

Release timeline

18 releases · Feb 2016 to Nov 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 18
  1. 1.0.4 11 Nov 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.0.3...1.0.4

    Open source →
  2. 1.0.3 17 Jun 2024
    Release notes

    Relaxes the composer constraint on psr/http-message to allow for using v2.

    Open source →
  3. 1.0.2 21 Nov 2021
    Release notes

    The reader should be a bit more memory friendly if you're calling value on objects or arrays.

    Dependence on the Ctype extension has been dropped. That it remained for so long is a testament to my laziness.

    Open source →
  4. 1.0.1 29 Oct 2020
    Release notes

    This release adds support for PHP 8 and drops support for PHP 7.2 and under.

    The changes are purely on the testing and requirements side of things, there is nothing to consider when upgrading.

    Open source →
  5. 1.0.0 13 Jan 2019
    Release notes

    This package has been stable for quite a while now, this release just makes that official.

    There are no major changes since 0.8.0.

    Open source →
  6. 0.8.0 02 Aug 2018
    Release notes

    Support for PSR-7 streams have been added with a new input stream and associated method on JsonReader, psr7Stream.

    Open source →
  7. 0.7.1 13 Mar 2018
    Release notes

    The parser has been rewritten, and along with further tweaks to the lexer and reader, makes for another performance bump.

    There are no API changes in this release.

    Open source →
  8. 0.7.0 05 Mar 2018
    Release notes

    This release features an overhaul in lexing as well as other performance improvements. Things should be a bit faster.

    Numbers will no longer be returned as strings from JsonReader::value(), they will instead be cast automatically to float or int as appropriate while minding the new option below.

    Added

    • JsonReader::FLOATS_AS_STRINGS option is now accepted by the JsonReader constructor. This will cause the reader to return floats as their original strings. This includes any JSON number with a decimal point or exponent, as well as those above PHP_INT_MAX or below PHP_INT_MIN.

    Changed

    • The JsonReader node constants are now strings. This makes debugging a bit easier. Note that this also changes the return type of JsonReader::type() to string.
    • The parser, lexer, and input streams are no longer Traversable. Those using these directly will want to check their new simplified interfaces.
    • Tuples from the lexer have a new shape to them. Again if you're using this directly you'll want to check the new interface.
    Open source →
  9. 0.6.4 26 Feb 2018
    Release notes

    Most of these we already throwing exceptions, just in the wrong place.
    One particularly crafty one wasn't.

    Open source →
  10. 0.6.3 26 Sep 2016
    Release notes

    Tighten up UTF-8 verification

    Open source →
  11. 0.6.2 21 Sep 2016

    Nothing published for this version

  12. 0.6.1 19 Sep 2016

    Nothing published for this version

  13. 0.6.0 19 Sep 2016

    Nothing published for this version

  14. 0.5.0 17 Sep 2016

    Nothing published for this version

  15. 0.4.0 11 Sep 2016

    Nothing published for this version

  16. 0.3.0 08 Mar 2016

    Nothing published for this version

  17. 0.2.0 01 Mar 2016

    Nothing published for this version

  18. 0.1.0 26 Feb 2016

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive