Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/prinx/http-codes
- Owner: prinx
- Created: 2020-11-03T15:53:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T00:46:37.000Z (7 months ago)
- Last Synced: 2024-10-17T04:16:52.496Z (3 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP CODES
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)