mrcl / http-methods
HTTP Methods library
1.0.1
2021-05-17 14:26 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.5
README
PHP library containing all HTTP methods listed in the IANA registry.
Installation
composer require mrcl/http-methods
Usage
The HttpMethod
interface contains all HTTP methods as constants
use Mrcl\Utils\InternetStandards\HttpMethod; HttpMethod::GET // 'GET' HttpMethod::POST // 'POST'