2017 © Pedro Peláez
 

library jsonbundle

Symfony2 bundle for json encode and decode

image

sgmendez/jsonbundle

Symfony2 bundle for json encode and decode

  • Tuesday, March 24, 2015
  • by sgmendez
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

JsonBundle

License SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version, (*1)

Library Json integration Symfony2 bundle., (*2)

Instalación

You can use Composer to use this library in your application., (*3)

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:, (*4)

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

And then execute this command to add libary to your project:, (*5)

$ composer require sgmendez/jsonbundle

Or require sgmendez/json into your composer.json file:, (*6)

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

Register bundle on appKernel:, (*7)


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

Use

For string JSON data:, (*8)

php

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

For local file JSON data:, (*9)

php

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

For remote file JSON data:, (*10)

php

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

License

Licensed under the BSD License:, (*11)

http://opensource.org/licenses/bsd-license.php, (*12)

The Versions

24/03 2015

dev-master

9999999-dev https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json

24/03 2015

v1.0.2

1.0.2.0 https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json

24/03 2015

dev-develop

dev-develop https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json

24/03 2015

v1.0.1

1.0.1.0 https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json

24/03 2015

v1.0.0

1.0.0.0 https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json

20/03 2015

v0.0.2

0.0.2.0 https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json

20/03 2015

v0.0.1

0.0.1.0 https://github.com/sgmendez/jsonBundle

Symfony2 bundle for json encode and decode

  Sources   Download

BSD-2-Clause

The Requires

 

by Salvador Mendez

json