PHPackages                             alexpts/psr15-middleware-manager - 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. alexpts/psr15-middleware-manager

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

alexpts/psr15-middleware-manager
================================

Middleware manager compatible with the PSR-7 and PSR-15

1.2.0(7y ago)072MITPHPPHP ~7.2

Since Mar 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/alexpts/psr15-middleware-manager)[ Packagist](https://packagist.org/packages/alexpts/psr15-middleware-manager)[ Docs](https://github.com/alexpts/psr15-middleware-manager)[ RSS](/packages/alexpts-psr15-middleware-manager/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

psr15-middleware-manager
========================

[](#psr15-middleware-manager)

[![Build Status](https://camo.githubusercontent.com/624a7644f9dadba1227c69b7e2c492aacac04e9ca044dc70a40eb227f87ba74c/68747470733a2f2f7472617669732d63692e6f72672f616c65787074732f70737231352d6d6964646c65776172652d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexpts/psr15-middleware-manager)[![Code Coverage](https://camo.githubusercontent.com/751eb748247a792853d9e80af834e92293df25e3e8cb29087bebe5ff994bbd06/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f70737231352d6d6964646c65776172652d6d616e616765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/psr15-middleware-manager/?branch=master)[![Code Climate](https://camo.githubusercontent.com/bf8f716e83fc87dbea9406c894b9233008aacf9e0eaf475c99b3cedec2007dc1/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f70737231352d6d6964646c65776172652d6d616e616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/alexpts/psr15-middleware-manager)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/787771dc1f10e84cbe602346a972931f9fe9e5e1fdbc827895c24afed246d6b4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f70737231352d6d6964646c65776172652d6d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/psr15-middleware-manager/?branch=master)

Middleware manager compatible with the [PSR-7](https://www.php-fig.org/psr/psr-7/) and [PSR-15](https://www.php-fig.org/psr/psr-15/)

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

[](#installation)

`$ composer require alexpts/psr15-middleware-manager`

Example
-------

[](#example)

```
use PTS\PSR15\MiddlewareManager\MiddlewareManager;

$manager = new MiddlewareManager;

$manager
	->use($logMiddleware, '/admins/.*') // invoke only path /admins/.*
	->use(new RequestWithAttribute(['container' => $container]))
	->use(new RouterMiddleware);

$manager->handle($request);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~41 days

Total

6

Last Release

2825d ago

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

1.1.2PHP ~7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/31106536118e11bf9d0c9d7f467db5b534efa9c46ee76680b308f0c39d9a798c?d=identicon)[alexpts](/maintainers/alexpts)

---

Top Contributors

[![alexpts](https://avatars.githubusercontent.com/u/1306916?v=4)](https://github.com/alexpts "alexpts (13 commits)")

---

Tags

psr-7middlewarepsr-15

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexpts-psr15-middleware-manager/health.svg)

```
[![Health](https://phpackages.com/badges/alexpts-psr15-middleware-manager/health.svg)](https://phpackages.com/packages/alexpts-psr15-middleware-manager)
```

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[tuupola/slim-basic-auth

PSR-7 and PSR-15 HTTP Basic Authentication Middleware

4442.0M26](/packages/tuupola-slim-basic-auth)[relay/relay

A PSR-15 server request handler.

3302.1M86](/packages/relay-relay)[tuupola/cors-middleware

PSR-7 and PSR-15 CORS middleware

1331.8M24](/packages/tuupola-cors-middleware)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

586.6M81](/packages/laminas-laminas-stratigility)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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