PHPackages                             acelot/middleware-dispatcher - 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. [Framework](/categories/framework)
4. /
5. acelot/middleware-dispatcher

ActiveLibrary[Framework](/categories/framework)

acelot/middleware-dispatcher
============================

PSR-15 compliant middleware dispatcher

1.0.0(7y ago)12.1k↑66.7%MITPHPPHP ^7.1

Since Jul 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/acelot/middleware-dispatcher)[ Packagist](https://packagist.org/packages/acelot/middleware-dispatcher)[ Docs](https://github.com/acelot/middleware-dispatcher)[ RSS](/packages/acelot-middleware-dispatcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Middleware Dispatcher
=====================

[](#middleware-dispatcher)

[![packagist](https://camo.githubusercontent.com/9238e6ff1572973f4ceacd0531e4cdd902de75c77a67153e03a488537bd3cb4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163656c6f742f6d6964646c65776172652d646973706174636865722e7376673f7374796c653d666c6174)](https://packagist.org/packages/acelot/middleware-dispatcher)[![deps](https://camo.githubusercontent.com/288eb68a2e63d5fff3f013b2b6a24d46435dae2ea57689deee0cda2e3230641d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d7a65726f2d626c75652e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/288eb68a2e63d5fff3f013b2b6a24d46435dae2ea57689deee0cda2e3230641d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d7a65726f2d626c75652e7376673f7374796c653d666c6174)[![license](https://camo.githubusercontent.com/8ec0f956d76be818e9ebca1c4c029ae3f0ede388070e8c696aa0504886aef31e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6163656c6f742f6d6964646c65776172652d646973706174636865722e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/8ec0f956d76be818e9ebca1c4c029ae3f0ede388070e8c696aa0504886aef31e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6163656c6f742f6d6964646c65776172652d646973706174636865722e7376673f7374796c653d666c6174)

[PSR-15](https://www.php-fig.org/psr/psr-15/) compliant middleware dispatcher.

Install
-------

[](#install)

```
composer require acelot/middleware-dispatcher
```

Also you need to install some [PSR-11](https://www.php-fig.org/psr/psr-11/) compliant DI container like `acelot/resolver` or `php-di/php-di`.

Example
-------

[](#example)

**`entrypoint.php`**

```
$resolver = new Psr11CompliantDiContainer();

$dispatcher = new MiddlewareDispatcher($resolver, [
    FirstMiddleware::class,
    SecondMiddleware::class,
    ThirdMiddleware::class,
    ...,
    LastMiddleware::class
]);

$response = $dispatcher->handle($serverRequest);
```

**`FirstMiddleware.php`**

```
class FirstMiddleware implements MiddlewareInterface
{
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        // Request handler
    }
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2848d ago

Major Versions

0.1.0 → 1.0.02018-08-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e8e4631dcd1e5485b4fe6a80f5c6feea95c388ca6b522c3cc69cb4eee8cc284?d=identicon)[acelot](/maintainers/acelot)

---

Top Contributors

[![acelot](https://avatars.githubusercontent.com/u/1065215?v=4)](https://github.com/acelot "acelot (2 commits)")

---

Tags

middlewarepsr-15dispatcher

### Embed Badge

![Health badge](/badges/acelot-middleware-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/acelot-middleware-dispatcher/health.svg)](https://phpackages.com/packages/acelot-middleware-dispatcher)
```

###  Alternatives

[chubbyphp/chubbyphp-framework

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

13544.4k4](/packages/chubbyphp-chubbyphp-framework)[yiisoft/middleware-dispatcher

PSR-15 middleware dispatcher

17369.2k13](/packages/yiisoft-middleware-dispatcher)[igniphp/framework

Swoole, PSR-7, PSR-15 modular micro anti-framework.

2651.0k1](/packages/igniphp-framework)[kafkiansky/symfony-middleware

PSR-15 Middleware for symfony.

7959.6k](/packages/kafkiansky-symfony-middleware)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)[yiisoft/csrf

Yii CSRF Protection Library

27253.1k10](/packages/yiisoft-csrf)

PHPackages © 2026

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