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 6y 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 2mo 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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2576d 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

[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6633.1M116](/packages/league-route)[relay/relay

A PSR-15 server request handler.

3302.1M84](/packages/relay-relay)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)[sunrise/http-router

A powerful solution as the foundation of your project.

16249.8k10](/packages/sunrise-http-router)[jimtools/jwt-auth

PSR-15 JWT Authentication middleware, A replacement for tuupola/slim-jwt-auth

20142.3k3](/packages/jimtools-jwt-auth)[mezzio/mezzio-cors

CORS component for Mezzio and other PSR-15 middleware runners.

17568.5k5](/packages/mezzio-mezzio-cors)

PHPackages © 2026

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