PHPackages                             codeinc/http-headers-middleware - 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. codeinc/http-headers-middleware

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

codeinc/http-headers-middleware
===============================

A collection of PSR-15 middleware to manage HTTP headers

1.0.2(7y ago)024MITPHPPHP &gt;=7.1

Since May 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CodeIncHQ/HttpHeadersMiddleware)[ Packagist](https://packagist.org/packages/codeinc/http-headers-middleware)[ Docs](https://github.com/CodeIncHQ/HttpHeadersMiddleware)[ RSS](/packages/codeinc-http-headers-middleware/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (0)

HTTP headers PSR-15 middleware
==============================

[](#http-headers-psr-15-middleware)

This library provides a collection of [PSR-15](https://www.php-fig.org/psr/psr-15/) middleware to manage HTTP headers.

The collection includes
-----------------------

[](#the-collection-includes)

- [`AddHttpHeadersMiddleware`](src/AddHttpHeadersMiddleware.php) Adds HTTP headers to the response
- [`CacheMiddleware`](src/CacheMiddleware.php) Adds cache headers to the response (using [micheh/psr7-cache](https://packagist.org/packages/micheh/psr7-cache))
- [`NoCacheMiddleware`](src/NoCacheMiddleware.php) Adds cache prevention headers to the response (using [micheh/psr7-cache](https://packagist.org/packages/micheh/psr7-cache))
- [`PoweredByMiddleware`](src/PoweredByMiddleware.php) Adds a `X-Powered-By` HTTP headers to the response
- [`HttpVersionCheckMiddleware`](src/HttpVersionCheckMiddleware.php) Insure that the HTTP version of the response is the same of the version used for the request.

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

[](#installation)

This library is available through [Packagist](https://packagist.org/packages/codeinc/http-headers-middleware) and can be installed using [Composer](https://getcomposer.org/):

```
composer require codeinc/http-headers-middleware
```

💬 This library is extracted from the now deprecated [codeinc/psr15-middlewares](https://packagist.org/packages/codeinc/psr15-middlewares) package.

License
-------

[](#license)

The library is published under the MIT license (see [`LICENSE`](LICENSE) file).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2822d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/8f72f949d7f70e400c02c225685f1934dec6219689f25edec38b4037df166d58?d=identicon)[codeinc](/maintainers/codeinc)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeinc-http-headers-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/codeinc-http-headers-middleware/health.svg)](https://phpackages.com/packages/codeinc-http-headers-middleware)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.7k](/packages/cakephp-cakephp)[typo3/cms-core

TYPO3 CMS Core

3713.2M4.9k](/packages/typo3-cms-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M120](/packages/mezzio-mezzio)[eliashaeussler/typo3-warming

Warming - Warms up Frontend caches based on an XML sitemap. Cache warmup can be triggered via TYPO3 backend or using a console command. Supports multiple languages and custom crawler implementations.

22260.2k](/packages/eliashaeussler-typo3-warming)[windwalker/framework

The next generation PHP framework.

25640.0k1](/packages/windwalker-framework)

PHPackages © 2026

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