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

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

parsidev/json
=============

JSON decoder/encoder for Laravel 5

6.0.x-dev(6y ago)086[2 PRs](https://github.com/parsidev/Json/pulls)MITPHPPHP &gt;=7.2

Since Jun 15Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (9)Used By (0)

\#JSON Encoder/Decoder installation

```
$ composer require parsidev/json
```

Once composer is finished, you need to add the service provider. Open `config/app.php`, and add a new item to the providers array.

```
'Parsidev\Json\JsonServiceProvider',

```

Next, add a Facade for more convenient usage. In `config/app.php` add the following line to the aliases array:

```
'ParsJSON' => 'Parsidev\Json\Facades\JsonFacade',

```

Usage
-----

[](#usage)

### Encode

[](#encode)

```
$data = array("test"=>1);
return \ParsJSON::encoder($data);
```

### Encode File

[](#encode-file)

```
$data = array("test"=>1);
\ParsJSON::encoderFile($data, '/path/to/file.json');
```

### Decode

[](#decode)

```
$json = '{"test":1}';
return \ParsJSON::decoder($json);
```

### Decode File

[](#decode-file)

```
return \ParsJSON::decoderFile('/path/to/file.json');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~259 days

Total

8

Last Release

2346d ago

Major Versions

5.8.x-dev → 6.0.x-dev2019-12-15

PHP version history (4 changes)5.1.x-devPHP &gt;=5.5.9

5.3.x-devPHP &gt;=5.6.4

5.6.x-devPHP &gt;=7.1.3

6.0.x-devPHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11275201?v=4)[Mohammad Reza](/maintainers/parsidev)[@parsidev](https://github.com/parsidev)

---

Top Contributors

[![parsidev](https://avatars.githubusercontent.com/u/11275201?v=4)](https://github.com/parsidev "parsidev (12 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

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