PHPackages                             brokeyourbike/http-enums - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. brokeyourbike/http-enums

ActiveLibrary[HTTP &amp; Networking](/categories/http)

brokeyourbike/http-enums
========================

HTTP related enums for PHP

2.0.1(3y ago)04.7k[1 PRs](https://github.com/brokeyourbike/http-enums-php/pulls)20MPL-2.0PHPPHP ^8.1CI failing

Since Oct 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/brokeyourbike/http-enums-php)[ Packagist](https://packagist.org/packages/brokeyourbike/http-enums)[ RSS](/packages/brokeyourbike-http-enums/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (20)

http-enums
==========

[](#http-enums)

[![Latest Stable Version](https://camo.githubusercontent.com/da59e786ee26bafaf4245f8e43d90b5a912e7afc55d7ddb908f96ff64dfda70c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f62726f6b65796f757262696b652f687474702d656e756d732d706870)](https://github.com/brokeyourbike/http-enums-php/releases)[![Total Downloads](https://camo.githubusercontent.com/2d12fd0413c4a1ac1a700960e4085855c306411f1088a3ae2c4aaf68c01f6966/68747470733a2f2f706f7365722e707567782e6f72672f62726f6b65796f757262696b652f687474702d656e756d732f646f776e6c6f616473)](https://packagist.org/packages/brokeyourbike/http-enums)[![Maintainability](https://camo.githubusercontent.com/14e55935aeb4283c0f17e1cbda84609e04f0b35ac73f7e53050ac72502a8ed88/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63623931323738343736623263363430653031362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/brokeyourbike/http-enums-php/maintainability)

HTTP related enums for PHP

Installation
------------

[](#installation)

```
composer require brokeyourbike/http-enums
```

Usage
-----

[](#usage)

```
use BrokeYourBike\HttpEnums\HttpMethodEnum;

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

Authors
-------

[](#authors)

- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk)

License
-------

[](#license)

[Mozilla Public License v2.0](https://github.com/brokeyourbike/http-enums-php/blob/main/LICENSE)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~190 days

Total

4

Last Release

1146d ago

Major Versions

1.0.1 → 2.0.02021-12-22

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/114f3c6e8506e0bba763451e8e4bcc3e94d662c2dce982a910b5d7b3444593cf?d=identicon)[brokeyourbike](/maintainers/brokeyourbike)

---

Top Contributors

[![brokeyourbike](https://avatars.githubusercontent.com/u/1554371?v=4)](https://github.com/brokeyourbike "brokeyourbike (23 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

enumenumshacktoberfesthttp-clientphpphp8

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brokeyourbike-http-enums/health.svg)

```
[![Health](https://phpackages.com/badges/brokeyourbike-http-enums/health.svg)](https://phpackages.com/packages/brokeyourbike-http-enums)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
