PHPackages                             sgmendez/jsonbundle - 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. sgmendez/jsonbundle

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

sgmendez/jsonbundle
===================

Symfony2 bundle for json encode and decode

v1.0.2(11y ago)017BSD-2-ClausePHPPHP &gt;=5.4.0

Since Mar 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sgmendez/jsonBundle)[ Packagist](https://packagist.org/packages/sgmendez/jsonbundle)[ Docs](https://github.com/sgmendez/jsonBundle)[ RSS](/packages/sgmendez-jsonbundle/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

JsonBundle
==========

[](#jsonbundle)

[![License](https://camo.githubusercontent.com/245332ea5c198e01dedd33ab395405dfe4621936bd4571657c821263c5cb4797/68747470733a2f2f706f7365722e707567782e6f72672f73676d656e64657a2f6a736f6e62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/sgmendez/jsonbundle)[![SensioLabsInsight](https://camo.githubusercontent.com/1aa8941a2dcb8e3c5f41483e5283afa9a36c108fa1746e7aeba86de73865fcca/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65643665323038662d643061642d343739382d626338632d6435303831343937376564352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ed6e208f-d0ad-4798-bc8c-d50814977ed5)[![Latest Stable Version](https://camo.githubusercontent.com/c958f921604fda2cfe24c19b62b87e79104c9fa94dacb18e7cf41046f0c492b2/68747470733a2f2f706f7365722e707567782e6f72672f73676d656e64657a2f6a736f6e62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/sgmendez/jsonbundle)[![Total Downloads](https://camo.githubusercontent.com/bb45e6db85eed03e6e53dd1e25f07897e5f567b6eaed7b3cef04b91d53ce1caa/68747470733a2f2f706f7365722e707567782e6f72672f73676d656e64657a2f6a736f6e62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/sgmendez/jsonbundle)[![Latest Unstable Version](https://camo.githubusercontent.com/a95cb63ecd03c22ba451e8167550aae8922e46f43b88c910fee194c2d1310c44/68747470733a2f2f706f7365722e707567782e6f72672f73676d656e64657a2f6a736f6e62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/sgmendez/jsonbundle)

Library [Json](http://sgmendez.github.io/json/) integration Symfony2 bundle.

Instalación
-----------

[](#instalación)

You can use [Composer](https://getcomposer.org) to use this library in your application.

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
curl -s http://getcomposer.org/installer | php

```

And then execute this command to add libary to your project:

```
$ composer require sgmendez/jsonbundle

```

Or require [`sgmendez/json`](http://sgmendez.github.io/json/)into your `composer.json` file:

```
json
{
    "require": {
        "sgmendez/jsonbundle": "*"
    }
}

```

Register bundle on appKernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Sgmendez\Bundle\JsonBundle\JsonBundle(),
        // ...
    );
}
```

Use
---

[](#use)

For string JSON data:

```
php

$json = $this->get('json.parser');
$a = $json->decode($stringJson);

```

For local file JSON data:

```
php

$json = $this->get('json.parser');
$a = $json->decodeFile('file.json');

```

For remote file JSON data:

```
php

$json = $this->get('json.parser');
$a = $json->decodeFile('http://ip.jsontest.com/');

```

License
=======

[](#license)

Licensed under the BSD License:

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

4119d ago

Major Versions

v0.0.2 → v1.0.02015-03-24

### Community

Maintainers

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

---

Top Contributors

[![sgmendez](https://avatars.githubusercontent.com/u/464341?v=4)](https://github.com/sgmendez "sgmendez (10 commits)")

---

Tags

json

### Embed Badge

![Health badge](/badges/sgmendez-jsonbundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k92.4M680](/packages/jms-serializer-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

511.7M6](/packages/symfony-bundles-json-request-bundle)[wa72/jsonrpc-bundle

JSON-RPC server for Symfony: exposes services registered in the service container as JSON-RPC webservices

3065.0k](/packages/wa72-jsonrpc-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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