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 collection in order to create http headers

1.0.1(11mo ago)14053MITPHPPHP ^7.1 || ^8.0

Since Mar 5Pushed 3mo 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 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)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

38

—

LowBetter than 85% of packages

Maintenance68

Regular maintenance activity

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

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 ~231 days

Total

3

Last Release

333d ago

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

1.0.x-devPHP ^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

httpheadersmime-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

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

Common interface for HTTP messages

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

URI manipulation library

1.1k206.4M276](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[paragonie/csp-builder

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

5412.8M18](/packages/paragonie-csp-builder)[delight-im/http

Hypertext Transfer Protocol (HTTP) utilities for PHP

191.3M4](/packages/delight-im-http)

PHPackages © 2026

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