https://github.com/marcandreappel/http_status
Small library to work with HTTP Status Codes
https://github.com/marcandreappel/http_status
code http php72 status
Last synced: 4 months ago
JSON representation
Small library to work with HTTP Status Codes
- Host: GitHub
- URL: https://github.com/marcandreappel/http_status
- Owner: marcandreappel
- Archived: true
- Created: 2018-06-20T09:51:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:16:12.000Z (almost 5 years ago)
- Last Synced: 2024-11-18T09:49:05.670Z (about 1 year ago)
- Topics: code, http, php72, status
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Status
 [](https://scrutinizer-ci.com/g/marcandreappel/http_status/?branch=master) [](https://scrutinizer-ci.com/code-intelligence)
## Usage
```php
class MyClass {
use \MarcAndreAppel\HttpStatus\HttpStatusTrait;
public function myFunction() {
$httpStatus = $this->httpStatusCode(400);
$httpStatus->header();
print($httpStatus->message);
}
}
```