2017 © Pedro Peláez
 

library http-constants

Constants for the HTTP protocol

image

koriym/http-constants

Constants for the HTTP protocol

  • Tuesday, August 29, 2017
  • by koriym
  • Repository
  • 1 Watchers
  • 5 Stars
  • 15,796 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 16 % Grown

The README.md

Koriym.HttpConstants

Contains the values of status codes, request method, and headers for the Hypertext Transfer Protocol (HTTP). Constants only., (*1)

Example


use Koriym\HttpConstants\HttpStatusCode; use Koriym\HttpConstants\RequestHeader; use Koriym\HttpConstants\ResponseHeader; use Koriym\HttpConstants\MediaType; use Koriym\HttpConstants\Method; http_response_code(StatusCode::BAD_REQUEST); header(ResponseHeader::CONTENT_TYPE . ': ' . MediaType::APPLICATION_JSON_API); // Content-Type: application/vnd.api+json header(ResponseHeader::CACHE_CONTROL . ': max-age=3600'); // Cache-Control: max-age=3600

Install

$ composer require koriym/http-constants

See also PSR Http Message Util., (*2)

The Versions

29/08 2017

dev-master

9999999-dev

Constants for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats

29/08 2017

1.0.4

1.0.4.0

Constants for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats

19/05 2017

1.0.3

1.0.3.0

Constants for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats

23/02 2017

1.0.2

1.0.2.0

Constants for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats

23/02 2017

1.0.1

1.0.1.0

Constants for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats

23/02 2017

1.0.0

1.0.0.0

Constants for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats

30/08 2015

0.1.0

0.1.0.0

Constatnts for the HTTP protocol

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

http consntats