iziphp / http-message-util
Utility enums to facilitate common operations of PSR-7
v1.0.0
2023-06-26 08:49 UTC
Requires
- php: ^8.2
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
README
Utility enums to facilitate common operations of PSR-7
Installation
composer require iziphp/http-message-util
Usage
use Easy\Http\Message\Method; use Easy\Http\Message\StatusCode; // HTTP Request method. $method = Method::GET; // GET // HTTP Response status code. $statusCode = StatusCode::OK; // 200 $phrase = $statusCode->getReasonPhrase(); // OK