PHPackages                             arash-anvari/api-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. arash-anvari/api-response

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

arash-anvari/api-response
=========================

It helps to manage responses consistency

01PHP

Since Nov 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/arash-anvari/api-response)[ Packagist](https://packagist.org/packages/arash-anvari/api-response)[ RSS](/packages/arash-anvari-api-response/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel API Response
====================

[](#laravel-api-response)

[![Latest Version](https://camo.githubusercontent.com/4746dfbff2aa44fbd76e31ee873d51cc9926ccfd16324675e765072236b93e51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726173682d616e766172692f6170692d726573706f6e73652e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/arash-anvari/api-response)[![PHP Version](https://camo.githubusercontent.com/efb4e347a17db04d827c59c53c5f060170936981f23be6e78118d7d9d11d9dad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726173682d616e766172692f6170692d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![Total Downloads](https://camo.githubusercontent.com/9f4dd3792e6340bee80cdd0b25bf14d4c8627f42d0f3a52f7d32b7e16c15f3d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61726173682d616e766172692f6170692d726573706f6e73652e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6d656469756d76696f6c6574726564)](https://packagist.org/packages/arash-anvari/api-response)

It helps to manage responses consistency

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

[](#installation)

```
composer require arash-anvari/api-response
```

Usage
-----

[](#usage)

web.php

```
Route::get('/', [\App\Http\Controllers\Controller::class, 'index']);
```

Controllre.php

```
