PHPackages                             imdhemy/jsonable - 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. [API Development](/categories/api)
4. /
5. imdhemy/jsonable

AbandonedArchivedLibrary[API Development](/categories/api)

imdhemy/jsonable
================

Laravel JSON response trait.

v1.0.0(7y ago)22722MITPHPPHP &gt;=7.1.0

Since Mar 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/imdhemy/jsonable)[ Packagist](https://packagist.org/packages/imdhemy/jsonable)[ RSS](/packages/imdhemy-jsonable/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Jsonable
========

[](#jsonable)

Laravel JSON response trait. This trait makes it easy for any controller to return a JSON response with the appropriate HTTP status code.

Installation
------------

[](#installation)

Via composer:

```
composer require imdhemy/jsonable

```

Usage
=====

[](#usage)

All that you need is to `use` the `Jsonable` trait inside your controller.

**Example:**

```
