PHPackages                             beeflow/jsonmanager - 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. beeflow/jsonmanager

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

beeflow/jsonmanager
===================

Json Manager Util

1.1.1(6y ago)11.5kLGPL-3.0-or-laterPHPPHP &gt;5.3.0CI failing

Since Jun 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/beeflow/jsonmanager)[ Packagist](https://packagist.org/packages/beeflow/jsonmanager)[ Docs](https://github.com/beeflow/JsonManager)[ RSS](/packages/beeflow-jsonmanager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

JsonManager
===========

[](#jsonmanager)

JsonMaganer helps to manage json data as an object.

With this class you can:

- add new field to selected path
- set new value of field in selected path
- get value of field
- get new JsonManager object if value of field is array
- use JsonManager in foreach loop

### Installation

[](#installation)

#### composer

[](#composer)

```
composer require beeflow/jsonmanager

```

#### GIT

[](#git)

Just run

```
git clone https://github.com/beeflow/JsonManager.git

```

### Example

[](#example)

#### Simple Json

[](#simple-json)

```
$jsonData = '{"id": 11111, "field": "field_name", "value": "new value"}';
$json = new JsonManager($jsonData);
$json->add('addNewRootField', 'new value');
$given = $json->get();
```

#### Array collection

[](#array-collection)

```
$arData = [
    ['id' => '1', 'field' => 'field name 1', 'value' => 'value 1'],
    ['id' => '2', 'field' => 'field name 2', 'value' => 'value 2'],
    ['id' => '3', 'field' => 'field name 3', 'value' => 'value 3']
];
$json = new JsonManager($arData, true);
```

#### List fields

[](#list-fields)

```
$arData = [
    ['id' => '1', 'field' => 'field name 1', 'value' => 'value 1'],
    ['id' => '2', 'field' => 'field name 2', 'value' => 'value 2'],
    ['id' => '3', 'field' => 'field name 3', 'value' => 'value 3']
];
$json = new JsonManager($arData, true);
$expected = [
    1 => ['field' => 'field name 1'],
    2 => ['field' => 'field name 2'],
    3 => ['field' => 'field name 3']
];
$this->assertEquals($expected, $json->listAll(['field']));
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

2518d ago

### Community

Maintainers

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

---

Top Contributors

[![beeflow](https://avatars.githubusercontent.com/u/6189126?v=4)](https://github.com/beeflow "beeflow (27 commits)")

---

Tags

json

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/beeflow-jsonmanager/health.svg)

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

###  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.

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

PHPackages © 2026

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