PHPackages                             akbsit/helper-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. akbsit/helper-json

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

akbsit/helper-json
==================

Helper for work with json.

1.0.4(2y ago)111314MITPHPPHP ^8.1

Since Mar 12Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (4)

helper-json, [Packagist](https://packagist.org/packages/akbsit/helper-json)
===========================================================================

[](#helper-json-packagist)

Install
-------

[](#install)

To install package, you need run command:

```
composer require akbsit/helper-json
```

Examples
--------

[](#examples)

1. Check string:

```
$sData = '{"key1":"value1","key2":"value2"}';

$bFlag = JsonHelper::isJson($sData);
```

2. JSON string to array:

```
$sData = '{"key1":"value1","key2":"value2"}';

$arData = JsonHelper::make()->data($sData)->decode();
```

```
array(2) {
  ["key1"]=> string(6) "value1"
  ["key2"]=> string(6) "value2"
}

```

3. JSON file to array

```
$sPath = 'data.json'; // in file string {"key1":"value1","key2":"value2"}

$arData = JsonHelper::make()->data($sPath)->decode();
```

```
array(2) {
  ["key1"]=> string(6) "value1"
  ["key2"]=> string(6) "value2"
}

```

4. Array to JSON string:

```
$arData = [
    'key1' => 'value1',
    'key2' => 'value2',
];

$sData = JsonHelper::make()->data($arData)->encode();
```

```
string(33) "{"key1":"value1","key2":"value2"}"

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

5

Last Release

894d ago

PHP version history (3 changes)1.0.0PHP ^7.4

1.0.1PHP ^7.4|^8.0

1.0.2PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![akbsit](https://avatars.githubusercontent.com/u/18245671?v=4)](https://github.com/akbsit "akbsit (5 commits)")

---

Tags

arrayjsonphpphpjsonarray

### Embed Badge

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

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

###  Alternatives

[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[hi-folks/data-block

Data class for managing nested arrays and JSON data.

1472.2k](/packages/hi-folks-data-block)

PHPackages © 2026

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