PHPackages                             codeinc/psr15-middlewares - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. codeinc/psr15-middlewares

Abandoned → [codeinc/security-middleware](/?search=codeinc%2Fsecurity-middleware)ArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

codeinc/psr15-middlewares
=========================

A collection a PSR-15 middlewares

2.3.1(8y ago)121MITPHPPHP &gt;=7.1

Since Feb 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/CodeIncHQ/Psr15Middlewares)[ Packagist](https://packagist.org/packages/codeinc/psr15-middlewares)[ Docs](https://github.com/CodeIncHQ/Psr15Middlewares)[ RSS](/packages/codeinc-psr15-middlewares/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (9)Versions (34)Used By (0)

PSR-15 middleware
=================

[](#psr-15-middleware)

**⚠️ This library is deprecated and should not be used.**

It is replaced by the following packages offering the same fonctonnalities in a more portable way:

[codeinc/http-headers-middleware](https://packagist.org/packages/codeinc/http-headers-middleware)
-------------------------------------------------------------------------------------------------

[](#codeinchttp-headers-middleware)

Provides the folowing middleware:

- `AddHttpHeadersMiddleware` Adds HTTP headers to the response
- `CacheMiddleware` Adds cache headers to the response
- `NoCacheMiddleware` Adds cache prevention headers to the response
- `PoweredByMiddleware` Adds a `X-Powered-By` HTTP headers to the response
- `HttpVersionCheckMiddleware` Insure that the HTTP version of the response is the same of the version used for the request.

[codeinc/robots-txt-middleware](https://packagist.org/packages/codeinc/robots-txt-middleware)
---------------------------------------------------------------------------------------------

[](#codeincrobots-txt-middleware)

Provides the folowing middleware:

- `RobotsTxtMiddleware` Sends a response to `/robots.txt` requests using [arcanedev/robots](https://github.com/ARCANEDEV/Robots) to generate the response in the [`robots.txt` format](https://developers.google.com/search/reference/robots_txt)

[codeinc/sitemap-middlware](https://packagist.org/packages/codeinc/sitemap-middlware)
-------------------------------------------------------------------------------------

[](#codeincsitemap-middlware)

Provides the folowing middleware:

- `SiteMapMiddleware` Send a response to `/sitemap.xml` requests using [tackk/cartographer](https://github.com/tackk/cartographer) to generate the response in the [`sitemap.xml` format](https://www.sitemaps.org/protocol.html)

[codeinc/compatibility-middleware](https://packagist.org/packages/codeinc/compatibility-middleware)
---------------------------------------------------------------------------------------------------

[](#codeinccompatibility-middleware)

Provides the folowing middleware:

- `PhpGpcVarsMiddleware` Extract PSR-7 request data to PHP GPC variables `$_GET`, `$_POST`, `$_COOKIE` and `$_SERVER`
- `PhpSessionMiddleware` Read sesion cookie from PSR-7 requests and add session cookie to PSR-7 responses

[codeinc/security-middleware](https://packagist.org/packages/codeinc/security-middleware)
-----------------------------------------------------------------------------------------

[](#codeincsecurity-middleware)

Provides the folowing middleware:

- `ContentSecurityPolicyMiddleware` Adds a [`Content-Security-Policy`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Security-Policy) HTTP headers to the response
- `ContentTypeOptionsMiddleware` Adds a [`X-Content-Type-Options`](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Content-Type-Options) HTTP headers to the response
- `ExpectCtMiddleware` Adds a [`Expect-CT`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Expect-CT) HTTP headers to the response
- `FrameOptionsMiddleware` Adds a [`X-Frame-Options`](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Frame-Options) HTTP headers to the response
- `ReferrerPolicyMiddleware` Adds a [`Referrer-Policy`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Referrer-Policy) HTTP headers to the response
- `StrictTransportSecurityMiddleware` Adds a [`Strict-Transport-Security`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Strict-Transport-Security) HTTP headers to the response
- `XssProtectionMiddleware` Adds a [`X-Xss-Protection`](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-XSS-Protection) HTTP headers to the response
- `BlockUnsecureRequestsMiddleware` Blocks unsecure (other than `HTTPS`) requests responses

Abandoned middleware
--------------------

[](#abandoned-middleware)

The following middleware are abandoned:

- `CallableMiddleware` Uses a callable as a middleware
- `ExceptionCaptureMiddleware` Captures exceptions thrown during the handling of the request

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity69

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

Total

33

Last Release

2981d ago

Major Versions

1.3.11-beta.3 → 2.0.0-beta.12018-04-27

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.0.1PHP &gt;=7.1

### 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-psr15-middlewares/health.svg)

```
[![Health](https://phpackages.com/badges/codeinc-psr15-middlewares/health.svg)](https://phpackages.com/packages/codeinc-psr15-middlewares)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/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)[typo3/cms-core

TYPO3 CMS Core

3312.9M4.8k](/packages/typo3-cms-core)[windwalker/framework

The next generation PHP framework.

25640.0k1](/packages/windwalker-framework)[eliashaeussler/typo3-solver

Solver - Extends TYPO3's exception handling with AI generated solutions. Problems can also be solved from command line. Several OpenAI parameters are configurable and prompts and solution providers can be customized as desired.

302.1k](/packages/eliashaeussler-typo3-solver)

PHPackages © 2026

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