PackageTrack
Sign in Get early access

ghostwriter/json

Safely encode and decode JSON

3.0.3 5.6M downloads/mo #1453 most downloaded on Packagist ghostwriter/json

What this package is like to depend on

Last release 2 months ago

19 Jun 2026

Ships unpredictably

gaps range from 2 weeks to 1.8 years

Most releases are documented

notes for 10 of 12 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

12 releases · first in 2022

3 releases in the last 12 months

see the full history below

Release timeline

12 releases · Jul 2022 to Jun 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 3.0.3 19 Jun 2026
    Release notes

    Full Changelog: 3.0.2...3.0.3

    Open source →
  2. 3.0.2 14 Apr 2026
    Release notes

    Full Changelog: 3.0.1...3.0.2

    Open source →
  3. 3.0.1 25 Nov 2025
    Release notes

    Full Changelog: 3.0.0...3.0.1

    Open source →
  4. 3.0.0 09 Feb 2024
    Release notes

    Removed

    • Constant Ghostwriter\Json\Interface\JsonInterface::DECODE was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::DEPTH was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::EMPTY was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::ENCODE was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::IGNORE was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::PRETTY was removed

    Changed

    • The return type of Ghostwriter\Json\Interface\JsonInterface#decode() changed from mixed to array
    • Parameter 1 of Ghostwriter\Json\Interface\JsonInterface#encode() changed name from int $flags = 0 to bool $prettyPrint = false
    • Parameter 1 of Ghostwriter\Json\Interface\JsonInterface#validate() changed name from int $flags = 0 to bool $ignoreInvalidUtf8 = false

    Full Changelog: 2.0.0...3.0.0

    Open source →
    Release notes

    Removed

    • Constant Ghostwriter\Json\Interface\JsonInterface::DECODE was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::DEPTH was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::EMPTY was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::ENCODE was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::IGNORE was removed
    • Constant Ghostwriter\Json\Interface\JsonInterface::PRETTY was removed

    Changed

    • The return type of Ghostwriter\Json\Interface\JsonInterface#decode() changed from mixed to array
    • Parameter 1 of Ghostwriter\Json\Interface\JsonInterface#encode() changed name from int $flags = 0 to bool $prettyPrint = false
    • Parameter 1 of Ghostwriter\Json\Interface\JsonInterface#validate() changed name from int $flags = 0 to bool $ignoreInvalidUtf8 = false
    Open source →
  5. 2.0.0 09 Dec 2023
    Release notes

    Full Changelog: 1.2.0...2.0.0

    • Drop PHP <= 8.2
    • Add validate method
    • Json class methods are now, non-static
    Open source →
    Release notes
    • Drop PHP <= 8.2
    • Add validate method
    • Json class methods are now, non-static
    Open source →
  6. 1.2.0 16 Aug 2023
    Release notes

    Full Changelog: 1.1.0...1.2.0

    Open source →
  7. 1.1.0 17 Jan 2023
    Release notes

    What's Changed

    Full Changelog: 1.0.1...1.1.0

    Open source →
    Release notes
    • Drop PHP 8.0
    • Add Changelog
    • Add coding-standard
    Open source →
  8. 1.0.1 02 Dec 2022
    Release notes

    What's Changed

    Full Changelog: 1.0.0...1.0.1

    Open source →
  9. 1.0.0 04 Oct 2022
    Release notes

    Full Changelog: 0.1.2...1.0.0

    Open source →
  10. 0.1.2 20 Sep 2022
    Release notes

    What's Changed

    Full Changelog: 0.1.1...0.1.2

    Open source →
  11. 0.1.1 09 Aug 2022

    Nothing published for this version

  12. 0.1.0 11 Jul 2022

    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