PHPackages                             originalasm/php-oo-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. originalasm/php-oo-json

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

originalasm/php-oo-json
=======================

An Object Oriented wrapper for the PHP JSON parser

v1.0.1(9y ago)04.3kISCPHPPHP &gt;=5.2.0

Since Jun 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/OriginalASM/php-oo-json)[ Packagist](https://packagist.org/packages/originalasm/php-oo-json)[ RSS](/packages/originalasm-php-oo-json/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

php-oo-json
===========

[](#php-oo-json)

An object oriented wrapper for internal PHP json support

Contains methods for parsing JavaScript Object Notation (JSON) and converting values to JSON. It can't be constructed and contains no properties or constants of its own. Aside from its two method properties it has no interesting functionality of its own.

The `JSON::parse` and `JSON::stringify` methods are mere OO wrappers around `json_decode` and `json_encode` PHP functions.

See

Usage
-----

[](#usage)

### Installation

[](#installation)

```
$ composer require originalasm/php-oo-json
```

### Simple JSON parsing

[](#simple-json-parsing)

```
require 'vendor/autoload.php'

use OOJson\JSON;

$json = name = $name;
        $this->number = $number;
    }
}

$object = new User("John Doe", 123456);

$json = JSON::stringify($object);

echo $json;     // {"name":"John Doe","number":"12345"}
```

LICENSE
-------

[](#license)

Copyright (c) 2016, Amitosh Swain Mahapatra

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~125 days

Total

2

Last Release

3548d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/816614?v=4)[Amitosh Jain](/maintainers/amitosh)[@amitosh](https://github.com/amitosh)

---

Top Contributors

[![recrsn](https://avatars.githubusercontent.com/u/16816719?v=4)](https://github.com/recrsn "recrsn (7 commits)")

### Embed Badge

![Health badge](/badges/originalasm-php-oo-json/health.svg)

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

PHPackages © 2026

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