PackageTrack
Sign in Get early access

colinodell/json5

UTF-8 compatible JSON5 parser for PHP

v3.0.0 27M downloads/mo #545 most downloaded on Packagist colinodell/json5

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Ships fairly regularly

a new release about every 9 months

Nearly every release is documented

notes for 13 of 13 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

13 releases · first in 2017

0 releases in the last 12 months

see the full history below

Release timeline

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

Releases

latest 13
  1. v3.0.0 09 Feb 2024
    Release notes

    You should not notice any breaking changes in this release unless you were using named parameters, or ignoring argument types defined in docblocks.

    Changed

    • Renamed function parameters to match json_decode()'s signature
      • $source is now $json
      • $options is now $flags
    • Added explicit mixed return type to match json_decode()
    • Added proper types to all parameters and return values of SyntaxError
    • Renamed two arguments in the SyntaxError's constructor:
      • $linenumber is now $lineNumber
      • $columnNumber is now $column

    Removed

    • Removed support for PHP 7.x (8.0+ is now required)
    Open source →
    Release notes

    You should not notice any breaking changes in this release unless you were using named parameters, or ignoring argument types defined in docblocks.

    Changed

    • Renamed function parameters to match json_decode()'s signature
      • $source is now $json
      • $options is now $flags
    • Added explicit mixed return type to match json_decode()
    • Added proper types to all parameters and return values of SyntaxError
    • Renamed two arguments in the SyntaxError's constructor:
      • $linenumber is now $lineNumber
      • $columnNumber is now $column

    Removed

    • Removed support for PHP 7.x (8.0+ is now required)
    Open source →
  2. v2.3.0 27 Dec 2022
    Release notes

    Added

    • Added parameter and return types matching the existing docblocks

    Fixed

    • Fixed missing @throws docblocks needed for PhpStorm to recognize exceptions (#21)
    Open source →
    Release notes

    Added

    • Added parameter and return types matching the existing docblocks

    Fixed

    • Fixed missing @throws docblocks needed for PhpStorm to recognize exceptions (#21)
    Open source →
  3. v2.2.2 22 Feb 2022
    Release notes

    Fixed

    • Fixed "small" integers always being cast to strings when JSON_BIGINT_AS_STRING is set (#17)
    • Fixed exceptions not being thrown when invalid UTF-16 escape sequences are encountered in strings
    Open source →
    Release notes

    Fixed

    • Fixed "small" integers always being cast to strings when JSON_BIGINT_AS_STRING is set (#17)
    • Fixed exceptions not being thrown when invalid UTF-16 escape sequences are encountered in strings
    Open source →
  4. v2.2.1 06 Nov 2021
    Release notes

    Fixed

    • Fixed exceptions always being thrown on PHP 7.3+ when parsing valid JSON5 with JSON_THROW_ON_ERROR explicitly set to true (#15)
    Open source →
    Release notes

    Fixed

    • Fixed exceptions always being thrown on PHP 7.3+ when parsing valid JSON5 with JSON_THROW_ON_ERROR explicitly set to true (#15)
    Open source →
  5. v2.2.0 29 Nov 2020
    Release notes

    Added

    • Added support for PHP 8.0

    Removed

    • Removed support for PHP 5.6 and 7.0
    Open source →
    Release notes

    Added

    • Added support for PHP 8.0

    Removed

    • Removed support for PHP 5.6 and 7.0
    Open source →
  6. v2.1.0 28 Mar 2019
    Release notes

    Added

    • Added .phpstorm.meta.php for better code completion
    • Added several tiny micro-optimizations

    Removed

    • Removed support for PHP 5.4 and 5.5
    Open source →
    Release notes

    Added

    • Added .phpstorm.meta.php for better code completion
    • Added several tiny micro-optimizations

    Removed

    • Removed support for PHP 5.4 and 5.5
    Open source →
  7. v2.0.0 20 Sep 2018
    Release notes

    Now with 100% more PHP 7.3 compatibility!

    Added

    • Added a polyfill for class \JsonException (added in PHP 7.3)
    • Added a polyfill for constant JSON_THROW_ON_ERROR

    Changed

    • The SyntaxError class now extends from \JsonException
    Open source →
    Release notes

    Added

    • Added a polyfill for class \JsonException (added in PHP 7.3)
    • Added a polyfill for constant JSON_THROW_ON_ERROR

    Changed

    • The SyntaxError class now extends from \JsonException
    Open source →
  8. v1.0.5 20 Sep 2018
    Release notes

    Fixed

    • Fixed exceptions not being thrown for incomplete objects/arrays
    Open source →
    Release notes

    Fixed

    • Fixed exceptions not being thrown for incomplete objects/arrays
    Open source →
  9. v1.0.4 14 Jan 2018
    Release notes

    Changed

    • Modified the internal pointer and string manipulations to use bytes instead of characters for better performance (#4)
    Open source →
    Release notes

    Changed

    • Modified the internal pointer and string manipulations to use bytes instead of characters for better performance (#4)
    Open source →
  10. v1.0.3 14 Jan 2018
    Release notes

    Fixed

    • Fixed check for PHP 7+
    Open source →
    Release notes

    Fixed

    • Fixed check for PHP 7+
    Open source →
  11. v1.0.2 14 Jan 2018
    Release notes

    This release contains massive performance improvements of 98% or more, especially for larger JSON inputs!

    Added

    • On PHP 7.x: parser will try using json_decode() first in case normal JSON is given, since this function is much faster (#1)

    Fixed

    • Fixed multiple performance issues (#1)
    • Fixed bug where JSON_OBJECT_AS_ARRAY was improperly taking priority over assoc in some cases
    Open source →
  12. v1.0.1 11 Nov 2017
    Release notes

    Removed

    • Removed accidentally-public constant
    Open source →
  13. v1.0.0 11 Nov 2017
    Release notes

    Added

    • Initial commit
    Open source →

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