PHPackages                             wecodein/http-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. wecodein/http-middleware

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

wecodein/http-middleware
========================

Middleware for PHP built on top of PSR-7, PSR-15 and PSR-17

1.0.1(7y ago)2531MITPHPPHP ^7.0

Since Jun 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/wecodein/http-middleware)[ Packagist](https://packagist.org/packages/wecodein/http-middleware)[ RSS](/packages/wecodein-http-middleware/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (7)Versions (5)Used By (1)

http-middleware
===============

[](#http-middleware)

[![Build Status](https://camo.githubusercontent.com/4e69e300551a5850f1883ec8bc46364c810372358f473226e0bf1f5eac78ac18/68747470733a2f2f7472617669732d63692e6f72672f7765636f6465696e2f687474702d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wecodein/http-middleware)[![Code Quality](https://camo.githubusercontent.com/d3c43963c0b3f8c168eddf94e566d5d5510751061d4fcf2b48a9e25577afd27e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7765636f6465696e2f687474702d6d6964646c65776172652e737667)](https://scrutinizer-ci.com/g/wecodein/http-middleware)[![Code Coverage](https://camo.githubusercontent.com/568d77688cdeb5a1ed4db646becfd220c27658e7a13b147cc28f995a9240cd58/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7765636f6465696e2f687474702d6d6964646c65776172652e737667)](https://scrutinizer-ci.com/g/wecodein/http-middleware/code-structure)[![Latest Version](https://camo.githubusercontent.com/95b4aa584b533c5260c7804d9c6153ae03ae4c66118030064563e2c79a4e0251/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765636f6465696e2f687474702d6d6964646c65776172652e737667)](https://packagist.org/packages/wecodein/http-middleware)[![PDS Skeleton](https://camo.githubusercontent.com/a8ce1f2a7b71f101b18fc0393ba5bf89b7a5b1f9d08a31b658ca0eab0064c0f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e737667)](https://github.com/php-pds/skeleton)

PSR-15 compliant implementation for processing middleware queues.

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

[](#installation)

The preferred method of installation is via [Composer](http://getcomposer.org/). Run the following command to install the latest version of a package and add it to your project's `composer.json`:

```
composer require wecodein/http-middleware
```

Usage
-----

[](#usage)

```
$requestHandler = new RequestHandler($responseFactory, ...$middlewares);
$response = $requestHandler->handle($serverRequest);
```

See [examples](examples).

Credits
-------

[](#credits)

- [Dusan Vejin](https://github.com/dutekvejin)
- [All Contributors](../../contributors)

License
-------

[](#license)

Released under MIT License - see the [License File](LICENSE) for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

2691d ago

Major Versions

0.5.0 → 1.0.02017-11-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/41c86db15b024a226947adeb93c6f51e7373c81f863a193c5a073dd9a6ae1a9e?d=identicon)[dutekvejin](/maintainers/dutekvejin)

---

Top Contributors

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

---

Tags

http-middlewarephp7pipelinepsr-15psr-17request-handlerpsr-7psr-17psr-15http-middlewarewecodein

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/wecodein-http-middleware/health.svg)

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

###  Alternatives

[league/route

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

6633.1M116](/packages/league-route)[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.4M93](/packages/middlewares-utils)[wellrested/wellrested

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)[mezzio/mezzio-cors

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

17568.5k5](/packages/mezzio-mezzio-cors)[chubbyphp/chubbyphp-swoole-request-handler

A request handler adapter for swoole, using PSR-7, PSR-15 and PSR-17.

3114.2k](/packages/chubbyphp-chubbyphp-swoole-request-handler)

PHPackages © 2026

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