PHPackages                             locr-company/http-status-code - 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. locr-company/http-status-code

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

locr-company/http-status-code
=============================

A Backed Enumeration for HTTP StatusCodes

1.0.0(1y ago)02.1k↓50%[4 PRs](https://github.com/locr-company/php-http-status-code/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jan 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/locr-company/php-http-status-code)[ Packagist](https://packagist.org/packages/locr-company/http-status-code)[ RSS](/packages/locr-company-http-status-code/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (13)Used By (0)

[![php](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)[![github_workflow_status](https://camo.githubusercontent.com/e6c76894fdf436c70fb7278b8d0efcd0cf3ef35993e5cac4e314fdb18037ba8a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f63722d636f6d70616e792f7068702d687474702d7374617475732d636f64652f7068702e796d6c)](https://github.com/locr-company/php-http-status-code/actions/workflows/php.yml)[![codecov](https://camo.githubusercontent.com/d299a9c69ce1a16968a41ba2fb4d4869d95c324eb6b184436b1b204edd934e06/68747470733a2f2f636f6465636f762e696f2f67682f6c6f63722d636f6d70616e792f7068702d687474702d7374617475732d636f64652f67726170682f62616467652e7376673f746f6b656e3d53676348306762334947)](https://codecov.io/gh/locr-company/php-http-status-code)[![Quality Gate Status](https://camo.githubusercontent.com/a6437178a6ae627125f14eeeb2bcfbda6dc34fe2350b9fcf94b3fe0560978f29/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6c6f63722d636f6d70616e795f7068702d687474702d7374617475732d636f6465266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=locr-company_php-http-status-code)[![github_tag](https://camo.githubusercontent.com/2553f547b4f5939e8b6c4c123e4e54eb8d38c87dc41a4d02699b5795f05c9360/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6c6f63722d636f6d70616e792f7068702d687474702d7374617475732d636f6465)](https://github.com/locr-company/php-http-status-code/tags)[![packagist](https://camo.githubusercontent.com/2180a27916771c0b2ceace6f4a3a5e4447d9021e019881c6a2f559f4898bd448/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f63722d636f6d70616e792f687474702d7374617475732d636f6465)](https://packagist.org/packages/locr-company/http-status-code)

1. Installation
===============

[](#1-installation)

```
composer require locr-company/http-status-code
```

2. How to use
=============

[](#2-how-to-use)

StatusCode is a [Backed enum](https://www.php.net/manual/en/language.enumerations.backed.php) with some extra functions.

```
