PHPackages                             phpolar/http-codes - 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. phpolar/http-codes

Abandoned → [php-common-enums/http-response-code](/?search=php-common-enums%2Fhttp-response-code)Library[HTTP &amp; Networking](/categories/http)

phpolar/http-codes
==================

PHP class for HTTP Response Codes

0.0.7(7mo ago)01.6k—0%1MITPHPCI failing

Since Jan 16Pushed 7mo agoCompare

[ Source](https://github.com/phpolar/http-codes)[ Packagist](https://packagist.org/packages/phpolar/http-codes)[ RSS](/packages/phpolar-http-codes/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (8)Used By (1)

HTTP CODES
==========

[](#http-codes)

PHP class for HTTP Response Codes

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

[](#installation)

```
composer require phpolar/http-codes
```

Usage
-----

[](#usage)

```
// "Import" the class
use Phpolar\HttpCode\Code as HTTP;

// Use the code in your code.
echo HTTP::OK; // 200
```

Contribute
----------

[](#contribute)

- Todo:
    - Document undocument codes.
    - Add other relevant unofficial codes.

Credits
-------

[](#credits)

- [w3](https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)
- [HTTP Statuses](https://httpstatuses.com/)
- [Wikipedia](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance65

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.5% 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 ~211 days

Recently: every ~263 days

Total

6

Last Release

211d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/122765967?v=4)[phpolar](/maintainers/phpolar)[@phpolar](https://github.com/phpolar)

---

Top Contributors

[![ericfortmeyer](https://avatars.githubusercontent.com/u/40972462?v=4)](https://github.com/ericfortmeyer "ericfortmeyer (25 commits)")[![prinx](https://avatars.githubusercontent.com/u/7337610?v=4)](https://github.com/prinx "prinx (9 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/phpolar-http-codes/health.svg)

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

###  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.4M92](/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)
