PHPackages                             hannesvdvreken/route-middleware - 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. hannesvdvreken/route-middleware

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

hannesvdvreken/route-middleware
===============================

0.1.0(10y ago)121MITPHPPHP &gt;=5.4

Since Sep 9Pushed 10y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

**Abandoned. Don't use this and don't send pull requests.**

PSR-7 middleware for league/route
=================================

[](#psr-7-middleware-for-leagueroute)

[![Latest Version](https://camo.githubusercontent.com/9e9e1a826176aeb282c081dbb31f2c63009a759fcbd41f5d6842d3d1095aad37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f68616e6e657376647672656b656e2f726f7574652d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://github.com/hannesvdvreken/route-middleware/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/5428550441518973cd6bc49c1b5fd88ee3281a053f031a6013d3e9ff2cb679f8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f68616e6e657376647672656b656e2f726f7574652d6d6964646c65776172652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/hannesvdvreken/route-middleware)[![Coverage Status](https://camo.githubusercontent.com/6e77286667d90cbde20f2963ff59fe6f35ef855a097ece9fd12b02e68b44fb51/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f68616e6e657376647672656b656e2f726f7574652d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hannesvdvreken/route-middleware/code-structure)[![Quality Score](https://camo.githubusercontent.com/3753ead8f7e2e9c1311c3b6f80d1b2e490ca8a7703a1a334329f2beae744a994/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f68616e6e657376647672656b656e2f726f7574652d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hannesvdvreken/route-middleware)

[PSR-7 compatible](https://github.com/hannesvdvreken/psr7-middlewares) Middleware for league/route's RouteCollection.

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

[](#installation)

```
composer require hannesvdvreken/route-middleware

```

Description
-----------

[](#description)

This package aims to provide an easy to use middleware that takes PSR-7 Request object and converts it to a Response object by calling the Route's dispatcher class.

```
use League\Route\RouteCollection;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\RequestInterface;

$router = new RouteCollection();

// Setup router
$router->addRoute('GET', '/robots.txt', function (RequestInterface $request, ResponseInterface $response) {
    // Adjust the response
    return $response;
});

$app = new League\Route\Stack\Middleware($router);

$response = $app->handle($request);
```

Contributing
------------

[](#contributing)

Contributions are welcome. See the [contributions file](CONTRIBUTING.md) to know how to contribute.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3904d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1410358?v=4)[Hannes Van De Vreken](/maintainers/hannesvdvreken)[@hannesvdvreken](https://github.com/hannesvdvreken)

---

Top Contributors

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

---

Tags

httppsr-7middleware

### Embed Badge

![Health badge](/badges/hannesvdvreken-route-middleware/health.svg)

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

###  Alternatives

[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18291.2M1.5k](/packages/psr-http-server-middleware)[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

586.6M81](/packages/laminas-laminas-stratigility)[middlewares/utils

Common utils for PSR-15 middleware packages

503.4M92](/packages/middlewares-utils)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.0M61](/packages/mezzio-mezzio-router)

PHPackages © 2026

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