PHPackages                             melquespaiva/rest-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. melquespaiva/rest-response

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

melquespaiva/rest-response
==========================

A project to manage Restfull Api's responses

v1.0.1(4y ago)383MITPHPPHP ^7.2

Since Apr 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MelquesPaiva/rest-response)[ Packagist](https://packagist.org/packages/melquespaiva/rest-response)[ RSS](/packages/melquespaiva-rest-response/feed)WikiDiscussions main Synced 6d ago

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

rest-response
=============

[](#rest-response)

Project to manage Restfull Api's response

[![Maintainer](https://camo.githubusercontent.com/8ae1275beb2b24f4d05d78792df9b00feb851ff08dd78069198f1cd77926a72f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406d656c7175657370616976612d626c75652e7376673f7374796c653d666c61742d737175617265)](https://instagram.com/melquespaiva?igshid=1iy3o4rdzfdrt)[![Source Code](https://camo.githubusercontent.com/921cd607299586b874b04b04c8f1fe000c8b49fb5ab76f6fef53f7c46361163d/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d4d656c7175657350616976612f726573742d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://github.com/MelquesPaiva/rest-response)[![PHP from Packagist](https://camo.githubusercontent.com/93377852c40cd525d73c68bdd07d4c12ad376135a149f8a599453b0ead392620/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f4d656c7175657350616976612f726573742d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/melquespaiva/rest-response)[![Latest Version](https://camo.githubusercontent.com/77a019cd8bd00a5f6635f7e0fef7a7e47150e8fb1a67b49450975de13d338871/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4d656c7175657350616976612f726573742d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://github.com/MelquesPaiva/rest-response/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/293676b1c80f3be5416bf6febdfca2529c9199a513b45b21d2f2fe04690eaf19/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f4d656c7175657350616976612f726573742d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/MelquesPaiva/rest-response)[![Quality Score](https://camo.githubusercontent.com/29f8e8608dfb121bdb9d415351d38309932ef29d12a6e37973a2e8337b150901/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4d656c7175657350616976612f726573742d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/MelquesPaiva/rest-response)[![Total Downloads](https://camo.githubusercontent.com/9aa080dbf366a5891df5c2d6b145e67e8eada6df4701d920742be0476b531a5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4d656c7175657350616976612f726573742d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cMelquesPaiva/rest-response)

###### Rest Response is an easy and optimized small library to manage your HTTP responses on your Api's RestFull

[](#rest-response-is-an-easy-and-optimized-small-library-to-manage-your-http-responses-on-your-apis-restfull)

Rest Response é uma pequena biblioteca fácil e otimizada para gerenciar suas respostas HTTP nas suas Api's RestFull

### Highlights

[](#highlights)

- Simple installation (Instalação simples)
- Optimized responses to major HTTP response codes (Respostas otimizadas para os principais códigos de resposta HTTP)
- Easy way to customize response for HTTP Response Code not implemented in the library (Uma maneira fácil de personalizar a resposta para o código de resposta HTTP não implementado na biblioteca)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

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

[](#installation)

Uploader is available via Composer:

```
"melquespaiva/rest-response": "^1.0"
```

or run

```
composer require melquespaiva/rest-response
```

Documentation
-------------

[](#documentation)

###### For details on how to use, see a sample folder in the component directory.

[](#for-details-on-how-to-use-see-a-sample-folder-in-the-component-directory)

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente.

```
