Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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);
}
}
```