PHPackages                             juanchosl/httpheaders - 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. juanchosl/httpheaders

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

juanchosl/httpheaders
=====================

Little methods and constants collection in order to create http headers and reuse standard codes and messages

1.0.2(2w ago)15493MITPHPPHP ^8.0

Since Mar 5Pushed 2w ago1 watchersCompare

[ Source](https://github.com/JuanchoSL/HttpHeaders)[ Packagist](https://packagist.org/packages/juanchosl/httpheaders)[ Docs](https://github.com/JuanchoSL/HttpHeaders)[ RSS](/packages/juanchosl-httpheaders/feed)WikiDiscussions 1.0 Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (3)

Http Headers
============

[](#http-headers)

Description
-----------

[](#description)

Little methods collection in order to create http headers, for request responses, status codes, mime-types...etc

How to use
----------

[](#how-to-use)

### Status Codes

[](#status-codes)

```
echo Codes::OK; //200
```

### Status Messages

[](#status-messages)

```
echo Messages::OK; //OK
```

or

```
echo Headers::getMessage(Codes::OK); //OK
```

### Extensions

[](#extensions)

```
echo Extensions::JS; //js
```

### Mime types

[](#mime-types)

```
echo MimeTypes::HTML; //text/html
```

or

```
echo ContentType::get("/home/users/me/Donwloads/file.txt"); //text/plain
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~294 days

Total

4

Last Release

14d ago

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

1.0.2PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18701207?v=4)[Juan Sánchez](/maintainers/Juanchosl)[@JuanchoSL](https://github.com/JuanchoSL)

---

Top Contributors

[![JuanchoSL](https://avatars.githubusercontent.com/u/18701207?v=4)](https://github.com/JuanchoSL "JuanchoSL (37 commits)")

---

Tags

httpftpheadersmime-typescontent typesfile extensions

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/juanchosl-httpheaders/health.svg)

```
[![Health](https://phpackages.com/badges/juanchosl-httpheaders/health.svg)](https://phpackages.com/packages/juanchosl-httpheaders)
```

###  Alternatives

[league/uri

URI manipulation library

1.1k252.7M429](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

542251.3M50](/packages/league-uri-interfaces)[paragonie/csp-builder

Easily add and update Content-Security-Policy headers for your project

5413.1M29](/packages/paragonie-csp-builder)[delight-im/http

Hypertext Transfer Protocol (HTTP) utilities for PHP

191.4M4](/packages/delight-im-http)[bakame/http-structured-fields

A PHP library that parses, validates and serializes HTTP structured fields according to RFC9561 and RFC8941

4510.0k8](/packages/bakame-http-structured-fields)

PHPackages © 2026

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