brokeyourbike/http-enums

HTTP related enums for PHP

2.0.1 2023-05-14 22:14 UTC

This package is auto-updated.

Last update: 2024-02-20 13:09:34 UTC


README

Latest Stable Version Total Downloads Maintainability

HTTP related enums for PHP

Installation

composer require brokeyourbike/http-enums

Usage

use BrokeYourBike\HttpEnums\HttpMethodEnum;

function performRequest(HttpMethodEnum $method, string $url)
{
    if ($method === HttpMethodEnum::GET) {
        //
    }
}

Authors

License

Mozilla Public License v2.0