PHPackages                             api-clients/middleware-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. api-clients/middleware-json

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

api-clients/middleware-json
===========================

JSON encode/decode middleware

4.0.0(5y ago)076.7k↓41.3%1[2 PRs](https://github.com/php-api-clients/middleware-json/pulls)4MITPHPPHP ^7.2

Since Apr 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/php-api-clients/middleware-json)[ Packagist](https://packagist.org/packages/api-clients/middleware-json)[ RSS](/packages/api-clients-middleware-json/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (7)Versions (16)Used By (4)

JSON tools for API Clients for PHP 7.x
======================================

[](#json-tools-for-api-clients-for-php-7x)

[![Build Status](https://camo.githubusercontent.com/f34517fc28ede757580aa9011d89ef16da2e3b3aa303e8bf336ec724549bfc39/68747470733a2f2f7472617669732d63692e6f72672f7068702d6170692d636c69656e74732f6d6964646c65776172652d6a736f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-api-clients/middleware-json)[![Latest Stable Version](https://camo.githubusercontent.com/f74f8164bfabd58371e94c91e80557069559809633ef01c2c4861d75ce83ba27/68747470733a2f2f706f7365722e707567782e6f72672f6170692d636c69656e74732f6d6964646c65776172652d6a736f6e2f762f737461626c652e706e67)](https://packagist.org/packages/api-clients/middleware-json)[![Total Downloads](https://camo.githubusercontent.com/5b19a3620ca2e7136cc8c6aaf8a641200edd4b3b73daebc61c502c7e0acaaeb5/68747470733a2f2f706f7365722e707567782e6f72672f6170692d636c69656e74732f6d6964646c65776172652d6a736f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/api-clients/middleware-json/stats)[![Code Coverage](https://camo.githubusercontent.com/289b4ca751fdf1191ff9010d96f0ed58120b3eed1fd0ecc7f1fc93e5bcc0604f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d6170692d636c69656e74732f6d6964646c65776172652d6a736f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/php-api-clients/middleware-json/?branch=master)[![License](https://camo.githubusercontent.com/38552f16e683681a7e476654c97729fa53de9f6189f1993bd0cd90aac46b79bf/68747470733a2f2f706f7365722e707567782e6f72672f6170692d636c69656e74732f6d6964646c65776172652d6a736f6e2f6c6963656e73652e706e67)](https://packagist.org/packages/api-clients/middleware-json)[![PHP 7 ready](https://camo.githubusercontent.com/1e49ea31e7d1c3e8edfa270e835b487577d6b1abb66a01e3f7ffea7ee79e6fde/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f7068702d6170692d636c69656e74732f6d6964646c65776172652d6a736f6e2f62616467652e737667)](https://appveyor-ci.org/php-api-clients/middleware-json)

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2017 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 86.3% 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 ~155 days

Recently: every ~324 days

Total

10

Last Release

1962d ago

Major Versions

1.1.0 → 2.0.02017-07-02

2.0.2 → 3.0.02017-07-30

3.1.0 → 4.0.02021-02-18

PHP version history (2 changes)1.0.0PHP ^7.0

4.0.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (341 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![jaapio](https://avatars.githubusercontent.com/u/1060433?v=4)](https://github.com/jaapio "jaapio (2 commits)")[![mdrost](https://avatars.githubusercontent.com/u/4083346?v=4)](https://github.com/mdrost "mdrost (2 commits)")[![ivailo-stoianov](https://avatars.githubusercontent.com/u/5235174?v=4)](https://github.com/ivailo-stoianov "ivailo-stoianov (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![VarCI-bot](https://avatars.githubusercontent.com/u/17718013?v=4)](https://github.com/VarCI-bot "VarCI-bot (1 commits)")[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (1 commits)")

---

Tags

hacktoberfestjsonmiddlewarephpphp7reactphp

### Embed Badge

![Health badge](/badges/api-clients-middleware-json/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M112](/packages/google-cloud-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[anthropic-ai/sdk

Anthropic PHP SDK

163583.3k17](/packages/anthropic-ai-sdk)

PHPackages © 2026

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