PHPackages                             lartisanlogiciel/http-status-object - 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. lartisanlogiciel/http-status-object

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

lartisanlogiciel/http-status-object
===================================

Object oriented http status codes

1.0.0(3mo ago)01MITPHPPHP &gt;=7.4

Since Feb 18Pushed 3mo agoCompare

[ Source](https://github.com/lartisanlogiciel/http-status-object)[ Packagist](https://packagist.org/packages/lartisanlogiciel/http-status-object)[ Docs](https://github.com/lartisanlogiciel/http-status-object)[ RSS](/packages/lartisanlogiciel-http-status-object/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Http Status Object
==================

[](#http-status-object)

Une façon simple d'utiliser les codes de statut http sous forme d'objet

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

[](#installation)

```
composer require lartisanlogiciel/http-status-object
```

Utilisation
-----------

[](#utilisation)

### Réponse de votre API

[](#réponse-de-votre-api)

Retournez le code http correspondant à la situation.
L'exemple ci-dessous est réalisé avec le framework Slim :

```
