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 4w 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 40% 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

2867d 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.9k20.0M1.8k](/packages/cakephp-cakephp)[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)[cakephp/authentication

Authentication plugin for CakePHP

1214.3M118](/packages/cakephp-authentication)[typo3/cms-core

TYPO3 CMS Core

3313.6M5.6k](/packages/typo3-cms-core)[sunrise/http-router

A powerful solution as the foundation of your project.

16852.3k12](/packages/sunrise-http-router)[typo3/cms-adminpanel

TYPO3 CMS Admin Panel - The Admin Panel displays information about your site in the frontend and contains a range of metrics including debug and caching information.

115.8M71](/packages/typo3-cms-adminpanel)

PHPackages © 2026

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