PHPackages                             gridonic/json-response - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. gridonic/json-response

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

gridonic/json-response
======================

Structures JSON responses for the JSend format

1.1.1(11y ago)217.7kMITPHPPHP &gt;=5.3.3

Since Oct 17Pushed 9y ago11 watchersCompare

[ Source](https://github.com/gridonic/JsonResponse)[ Packagist](https://packagist.org/packages/gridonic/json-response)[ Docs](http://gridonic.ch)[ RSS](/packages/gridonic-json-response/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (2)Versions (11)Used By (0)

JsonResponse
============

[](#jsonresponse)

Provides simple classes for JSON responses that adhere to a standardized structure. Since JSON responses may have very different formats, this package supports the specific [JSend](http://labs.omniti.com/labs/jsend) format defined at .

This package is an extension of the [HttpFoundation\\JsonResponse](http://symfony.com/doc/current/components/http_foundation/introduction.html)class from the [Symfony](http://symfony.com/) package.

[![Build Status](https://camo.githubusercontent.com/3e159d6371644ffbfeb66400d19d6fcabd5a242cf7b86643210e954acdf2c8a4/68747470733a2f2f7472617669732d63692e6f72672f677269646f6e69632f4a736f6e526573706f6e73652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gridonic/JsonResponse)

Install
-------

[](#install)

The recommended way to install JsonResponse is [through composer](http://getcomposer.org).

You can either add it as a depedency to your project using the command line:

```
$ composer require gridonic/json-response

```

or by adding it directly to your `composer.json` file:

```
{
    "require": {
        "gridonic/json-response": "1.*"
    }
}
```

Run these two commands to install it:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install

```

Now you can add the autoloader, and you will have access to the library:

```
