Skip to content

Constants enumerating the HTTP Status Codes. Based on the HTTP Status Code Registry.

License

Notifications You must be signed in to change notification settings

logiek/http-status-codes

Repository files navigation

http-status-codes

Latest Stable Version Total Downloads License PHP Version Require

Constants enumerating the HTTP Status Codes. Based on the HTTP Status Code Registry.

Installation

You can install the package via Composer:

composer require logiek/http-status-codes

Usage

use Logiek\Http\StatusCode;

StatusCode::HTTP_OK; // 200
StatusCode::get(); // [100 => 'Continue', 101 => 'Switching Protocols', ...]
StatusCode::getReasonPhrase(StatusCode::HTTP_OK); // OK
StatusCode::getStatusCode('Not Found'); // 404

Changelog

Please see the CHANGELOG for more information about recent changes.

Testing

Run the tests with:

composer test

License

This project is open-sourced software licensed under the MIT license.

About

Constants enumerating the HTTP Status Codes. Based on the HTTP Status Code Registry.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages