marcandreappel/http_status

This package is abandoned and no longer maintained. No replacement package was suggested.

HTTP Status Codes

1.0.0 2018-06-20 10:54 UTC

This package is auto-updated.

Last update: 2022-10-29 03:12:37 UTC


README

Travis build status Scrutinizer Code Quality Code Intelligence Status

Usage

class MyClass {
    use \MarcAndreAppel\HttpStatus\HttpStatusTrait;
    
    public function myFunction() {
        $httpStatus = $this->httpStatusCode(400);
        
        $httpStatus->header();
        print($httpStatus->message);
    }
}