PHPackages                             idiosyncratic/http-middlewarehandler - 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. idiosyncratic/http-middlewarehandler

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

idiosyncratic/http-middlewarehandler
====================================

Simple PSR-15 Middleware Handler

1.0.2(7y ago)09MITPHPPHP &gt;=7.3CI failing

Since Apr 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/idiosyncratic-code/http-middlewarehandler)[ Packagist](https://packagist.org/packages/idiosyncratic/http-middlewarehandler)[ RSS](/packages/idiosyncratic-http-middlewarehandler/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

The Idiosyncratic HTTP Middleware Request Handler
=================================================

[](#the-idiosyncratic-http-middleware-request-handler)

Simple queue based PSR-15 Middleware Handler.

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

[](#installation)

```
composer require idiosyncratic/http-middlewarehandler

```

Usage
-----

[](#usage)

Composing an instance requires:

- A fallback request handler implementing `Psr\Http\Server\RequestHandlerInterface`
- One or more middlewares implementing `Psr\Http\Server\MiddlewareInterface`

```
use Idiosyncratic\Http\Middleware\MiddlewareRequestHandler;

$handler = new MiddlewareRequestHandler(
    new PsrRequestHandler(),
    new PsrMiddlewareOne(),
    new PsrMiddlewareTwo(),
    new PsrMiddlewareThree(),
);

$response = $handler->handle($psrServerRequest);

```

While most PHP applications are designed so that script lifetime is for a single request, `MiddlewareRequestHandler` is designed to be usable in long lived scripts, such as an application built with a [ReactPHP](https://reactphp.org) or a similar library. Therefore, it is expected that middlewares and the services that they use are stateless as a single instance may service multiple requests.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

2628d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0995074b7e20d6f5efab38a8e956a12dbaf93f8ef3592d11c5d884d631f8658a?d=identicon)[jcsilkey](/maintainers/jcsilkey)

---

Top Contributors

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

---

Tags

psr-7psr-15

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/idiosyncratic-http-middlewarehandler/health.svg)

```
[![Health](https://phpackages.com/badges/idiosyncratic-http-middlewarehandler/health.svg)](https://phpackages.com/packages/idiosyncratic-http-middlewarehandler)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[mezzio/mezzio

PSR-15 Middleware Microframework

3913.8M120](/packages/mezzio-mezzio)[sunrise/http-router

A powerful solution as the foundation of your project.

17450.9k10](/packages/sunrise-http-router)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

577.0M95](/packages/laminas-laminas-stratigility)[mezzio/mezzio-swoole

Swoole support for Mezzio

92247.8k3](/packages/mezzio-mezzio-swoole)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28545.4k3](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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