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

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

logiek/http-status-codes
========================

Constants enumerating the HTTP Status Codes. Based on the HTTP Status Code Registry.

1.4.0(2y ago)12.0k↓50%1MITPHPPHP ^8.0|^8.1|^8.2

Since Oct 1Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/logiek/http-status-codes)[ Packagist](https://packagist.org/packages/logiek/http-status-codes)[ RSS](/packages/logiek-http-status-codes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

⚠️ THIS PACKAGE IS NO LONGER MAINTAINED ⚠️
This repository has been discontinued and is no longer receiving updates or support.

http-status-codes
=================

[](#http-status-codes)

[![Latest Stable Version](https://camo.githubusercontent.com/7a9d6ff02cfcb34334d6e35da5d3f687e9b4b9947bdcf4c3877816bb568b0b79/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f687474702d7374617475732d636f6465732f762f737461626c65)](https://packagist.org/packages/logiek/http-status-codes) [![Total Downloads](https://camo.githubusercontent.com/19d99b0be978ae3c1e874addbdb9084052892565d3e61b65c1f8b21371678c10/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f687474702d7374617475732d636f6465732f646f776e6c6f616473)](https://packagist.org/packages/logiek/http-status-codes) [![License](https://camo.githubusercontent.com/bba1aa923974b253a565a9a2be0ce60d9ed0df14ab7e63c5c15a9ceade6485bc/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f687474702d7374617475732d636f6465732f6c6963656e7365)](https://packagist.org/packages/logiek/http-status-codes) [![PHP Version Require](https://camo.githubusercontent.com/95c127e5c91c7bded400d232d46f78770a3fec4272a4943fc26caa7141e8a84f/687474703a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f687474702d7374617475732d636f6465732f726571756972652f706870)](https://packagist.org/packages/logiek/http-status-codes)

Constants enumerating the HTTP Status Codes. Based on the [HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xml).

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

[](#installation)

You can install the package via Composer:

```
composer require logiek/http-status-codes
```

Usage
-----

[](#usage)

```
use Logiek\Http\StatusCode;

StatusCode::HTTP_OK; // 200
StatusCode::get(); // [100 => 'Continue', 101 => 'Switching Protocols', ...]
StatusCode::getReasonPhrase(StatusCode::HTTP_OK); // OK
StatusCode::getStatusCode('Not Found'); // 404
```

Changelog
---------

[](#changelog)

Please see the [CHANGELOG](CHANGELOG.md) for more information about recent changes.

Testing
-------

[](#testing)

Run the tests with:

```
composer test
```

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance41

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~97 days

Recently: every ~163 days

Total

8

Last Release

1012d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.4.0PHP ^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b80eca3a0f08b0d8aa01d97c55cae912a9a0b50f93400e62c8717aca1a45d6c8?d=identicon)[logiek](/maintainers/logiek)

---

Top Contributors

[![jordinbrouwer](https://avatars.githubusercontent.com/u/18177037?v=4)](https://github.com/jordinbrouwer "jordinbrouwer (15 commits)")[![jellevanamersfoort](https://avatars.githubusercontent.com/u/11201015?v=4)](https://github.com/jellevanamersfoort "jellevanamersfoort (1 commits)")[![nickvanamersfoort](https://avatars.githubusercontent.com/u/86605153?v=4)](https://github.com/nickvanamersfoort "nickvanamersfoort (1 commits)")

---

Tags

httpstatuscodes

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-message

Common interface for HTTP messages

7.1k1.0B5.5k](/packages/psr-http-message)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

536204.9M23](/packages/league-uri-interfaces)[laravel-lang/http-statuses

Translation of HTTP statuses

283.2M7](/packages/laravel-lang-http-statuses)

PHPackages © 2026

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