Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prinx/http-codes

PHP class for HTTP Response Codes
https://github.com/prinx/http-codes

Last synced: 2 months ago
JSON representation

PHP class for HTTP Response Codes

Awesome Lists containing this project

README

        

# HTTP CODES


Build Status
License

PHP class for HTTP Response Codes

## Installation

```shell
composer require prinx/http-codes
```

## Usage

```php
// "Import" the class
use Prinx\HttpCode\Code as HTTP;

// Use the code in your code.
echo HTTP::OK; // 200
```

## Contribute

- Todo:
- Document undocument codes.
- Add other relevant unofficial codes.

## Credits

- [w3](https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)
- [HTTP Statuses](https://httpstatuses.com/)
- [Wikipedia](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes)