Skip to content

zlik/http-status-codes-trait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#HTTP Status Codes Trait

A PHP trait which defines all standard HTTP status codes.

#Installing with Composer

"require": {
    "zlik/http-status-codes-trait": "1.0"
}

#Usage

Mix the \Zlik\HttpStatusCodes trait into your class and utilize it's public properties to get HTTP status codes. For example:

class Foo {
    use \Zlik\HttpStatusCodes;
}

$foo = new Foo;
echo $foo->HTTP_NOT_FOUND; //outputs '404'

#Requirements

PHP 5.4+

About

A PHP trait which defines all standard HTTP status codes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages