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(5mo ago)01.3k↓50%1MITPHPCI failing

Since Jan 16Pushed 5mo 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 1mo ago

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

37

—

LowBetter than 83% of packages

Maintenance71

Regular maintenance activity

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

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

165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f34e51c09f71ccba1670d080b700e489cc2cffd43f4bed7684af4dff0195732?d=identicon)[phpolar](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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