2017 © Pedro Peláez
 

library http-status-codes-trait

A PHP trait which defines all standard HTTP status codes.

image

zlik/http-status-codes-trait

A PHP trait which defines all standard HTTP status codes.

  • Sunday, November 16, 2014
  • by zlik
  • Repository
  • 1 Watchers
  • 2 Stars
  • 161 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HTTP Status Codes Trait

A PHP trait which defines all standard HTTP status codes., (*1)

Installing with Composer

json "require": { "zlik/http-status-codes-trait": "1.0" }, (*2)

Usage

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

class Foo {
    use \Zlik\HttpStatusCodes;
}

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

Requirements

PHP 5.4+, (*4)

The Versions

16/11 2014

dev-master

9999999-dev https://github.com/zlik/http-status-codes-trait

A PHP trait which defines all standard HTTP status codes.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

24/11 2013

1.0

1.0.0.0 https://github.com/zlik/http-status-codes-trait

A PHP trait which defines all standard HTTP status codes.

  Sources   Download

MIT

The Requires

  • php >=5.4.0