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

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

prinx/http-codes
================

PHP class for HTTP Response Codes

302PHP

Since Mar 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/prinx/http-codes)[ Packagist](https://packagist.org/packages/prinx/http-codes)[ RSS](/packages/prinx-http-codes/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#http-codes)

[![Build Status](https://camo.githubusercontent.com/85883fa0632247740c86cca2eb20cd3b99da9bc5317b54ca290ae6dbd67d7abf/68747470733a2f2f7472617669732d63692e636f6d2f7072696e782f687474702d636f6465732e7376673f6272616e63683d6d61696e)](https://travis-ci.org/prinx/http-codes)[![License](https://camo.githubusercontent.com/389aaa09957efdfd69d036a717391282e0d19940e8b5ce587842c7a2d60966ff/68747470733a2f2f706f7365722e707567782e6f72672f7072696e782f687474702d636f6465732f6c6963656e7365)](https://packagist.org/packages/prinx/http-codes)

PHP class for HTTP Response Codes

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

[](#installation)

```
composer require prinx/http-codes
```

Usage
-----

[](#usage)

```
// "Import" the class
use Prinx\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

19

—

LowBetter than 10% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/896d24b4882562faf6f1c8c25ea90e515037f5811f251a11fd80b68db61fc458?d=identicon)[Prinx](/maintainers/Prinx)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/prinx-http-codes/health.svg)](https://phpackages.com/packages/prinx-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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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