Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:16:12.000Z (over 3 years ago)
- Last Synced: 2024-09-25T22:48:20.621Z (4 months 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
![Travis build status](https://travis-ci.org/marcandreappel/http_status.svg?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/marcandreappel/http_status/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/marcandreappel/http_status/?branch=master) [![Code Intelligence Status](https://scrutinizer-ci.com/g/marcandreappel/http_status/badges/code-intelligence.svg?b=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);
}
}
```