PHPackages                             bzick/jsonor - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. bzick/jsonor

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

bzick/jsonor
============

Useful container for JSON. Use JSON as array

1.0.1(9y ago)042.9k1MITPHPPHP ^5.4 || ^7.0

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bzick/jsonor)[ Packagist](https://packagist.org/packages/bzick/jsonor)[ RSS](/packages/bzick-jsonor/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

JSON Container
==============

[](#json-container)

[![Build Status](https://camo.githubusercontent.com/0d9847341dc59993a7cbf22ceee18acc44c8010fb98fd9a099ce9b7d141d3caf/68747470733a2f2f7472617669732d63692e6f72672f627a69636b2f6a736f6e6f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bzick/jsonor)

Usage
-----

[](#usage)

```
use Jsonor\JSON;

// returns null if it's valid json, or a ParsingException object.
JSON::lint($json);

// Call getMessage() on the exception object to get
// a well formatted error message error like this

// Parse error on line 2:
// ... "key": "value"    "numbers": [1, 2, 3]
// ----------------------^
// Expected one of: 'EOF', '}', ':', ',', ']'

// Call getDetails() on the exception to get more info.

// returns parsed json, like json_decode() does
$data = JSON::decode($json);
// sets yours callback on changes
$data->onChange(function () {
    // store in DB, e.g.
});
// Use $data as array
$data["d"][1]["name"] = "Banana";
$data["d"][1]["desc"] = "It's fruit";
$data["d"][] = [
    "name" => "Apple"
];

unset($c["d"][1]);

foreach($data as $key => $value) {
    // ...
}
```

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

[](#installation)

For a quick install with Composer use:

```
$ composer require bzick/jsonor

```

Jsonor can easily be used within another app if you have a [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md)autoloader, or it can be installed through [Composer](https://getcomposer.org/)for use as a CLI util.

Requirements
------------

[](#requirements)

- PHP 5.4+
- \[optional\] PHPUnit 3.5+ to execute the test suite (phpunit --version)

Submitting bugs and feature requests
------------------------------------

[](#submitting-bugs-and-feature-requests)

Bugs and feature request are tracked on [GitHub](https://github.com/bzick/jsonor/issues)

Author
------

[](#author)

Ivan Shalganov -

License
-------

[](#license)

Jsonor is licensed under the MIT License - see the LICENSE file for details

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

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 ~16 days

Total

2

Last Release

3609d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/135c5c250b5bf3601bec3f76db32610c07970441b96a557d0a7a767187912511?d=identicon)[bzick](/maintainers/bzick)

---

Top Contributors

[![bzick](https://avatars.githubusercontent.com/u/345384?v=4)](https://github.com/bzick "bzick (8 commits)")

---

Tags

jsoncontainerobjectwrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bzick-jsonor/health.svg)

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

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.1B4.7k](/packages/psr-container)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k134.5M1.4k](/packages/pimple-pimple)[php-di/php-di

The dependency injection container for humans

2.9k55.5M1.2k](/packages/php-di-php-di)[league/container

A fast and intuitive dependency injection container.

86894.4M442](/packages/league-container)[dvdoug/boxpacker

An implementation of the 3D (actually 4D) bin packing/knapsack problem (aka creating parcels by putting items into boxes)

6562.9M26](/packages/dvdoug-boxpacker)[league/tactician-container

Tactician integration for any container implementing PSR-11

7710.4M24](/packages/league-tactician-container)

PHPackages © 2026

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