PHPackages                             phootwork/json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. phootwork/json

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

phootwork/json
==============

PHP json wrapper library

v3.2.3(2y ago)280.2k↑16.7%2MITPHPPHP &gt;=8.0

Since May 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/phootwork/json)[ Packagist](https://packagist.org/packages/phootwork/json)[ Docs](https://phootwork.github.io/json/)[ RSS](/packages/phootwork-json/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (17)Used By (2)

PHP JSON Library
================

[](#php-json-library)

[![Tests](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/69bd7e143cbdfb19d74ce75708a9f883ef5e8c3e12e93af074e908c564d06c52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/826ef921280a14b18e896b455eda961bf8c53758c493844143b31e66791a06d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![License](https://camo.githubusercontent.com/0769076bc0798227efbaefa4f0ef0a030d2016518499d6c3a90d2fa7183f2c3a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70686f6f74776f726b2f6a736f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/json)[![Latest Stable Version](https://camo.githubusercontent.com/b0d78925604f23f2bbb2e31e41204a3a2eaafadfd4c99727b64a7b4600a51396/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686f6f74776f726b2f6a736f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/json)[![Total Downloads](https://camo.githubusercontent.com/e79f31747a667735cdbf15a99e63d212232b1c8367f1137ad670c7c24443e37c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70686f6f74776f726b2f6a736f6e2e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d303037656336)](https://packagist.org/packages/phootwork/json)

PHP json library, with clean syntax and proper error management (through exception).

Goals
-----

[](#goals)

- Wrap native PHP functions with classes
- Provide solid error handling with exceptions

Installation
------------

[](#installation)

Installation via composer:

```
composer require phootwork/json

```

Documentation
-------------

[](#documentation)

Running tests
-------------

[](#running-tests)

This package is a part of the Phootwork library. In order to run the test suite, you have to download the full library.

```
git clone https://github.com/phootwork/phootwork

```

Then install the dependencies via composer:

```
composer install

```

Now, run the *json* test suite:

```
vendor/bin/phpunit --testsuite json

```

If you want to run the whole library tests, simply run:

```
vendor/bin/phpunit

```

Contact
-------

[](#contact)

Report issues at the github [Issue Tracker](https://github.com/phootwork/phootwork/issues).

Changelog
---------

[](#changelog)

Refer to [Releases](https://github.com/phootwork/phootwork/releases)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 56% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~195 days

Recently: every ~202 days

Total

16

Last Release

1089d ago

Major Versions

v1.2 → v2.0-alpha2019-09-08

v2.1.2 → v3.02021-03-08

PHP version history (4 changes)v1.0PHP &gt;=5.4

v1.2PHP &gt;=5.6

v2.0-alphaPHP &gt;=7.2

v3.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b1ca3beb32834f0f6a4b66d7a695ecc01397aa92e9a97bd0ba5dd8aa14e0c6e?d=identicon)[gossi](/maintainers/gossi)

![](https://www.gravatar.com/avatar/fb5ce96caf1e78aeefa09e75b49f21cc5214729ac6a9a06b852cf5de1269e058?d=identicon)[cristianoc72](/maintainers/cristianoc72)

---

Top Contributors

[![gossi](https://avatars.githubusercontent.com/u/283700?v=4)](https://github.com/gossi "gossi (14 commits)")[![cristianoc72](https://avatars.githubusercontent.com/u/865437?v=4)](https://github.com/cristianoc72 "cristianoc72 (10 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

jsonphp-json-libraryjson

### Embed Badge

![Health badge](/badges/phootwork-json/health.svg)

```
[![Health](https://phpackages.com/badges/phootwork-json/health.svg)](https://phpackages.com/packages/phootwork-json)
```

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k316.9M612](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30422.2M45](/packages/colinodell-json5)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15467.7M16](/packages/clue-ndjson-react)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
