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

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

prooph/http-middleware
======================

http middleware for prooph components

v0.3.1(3y ago)1145.0k↓30.6%4[6 issues](https://github.com/prooph/http-middleware/issues)BSD-3-ClausePHPPHP ^7.4 || ^8.0

Since Jan 23Pushed 3y ago6 watchersCompare

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

READMEChangelog (4)Dependencies (15)Versions (5)Used By (0)

http middleware for prooph components
=====================================

[](#http-middleware-for-prooph-components)

Consume prooph messages (commands, queries and events) with a PSR-7/ PSR-15 middleware. Please refer to the [service-bus component documentation](https://github.com/prooph/service-bus) to see how to configure the different bus types.

[![Build Status](https://camo.githubusercontent.com/d21c24bfb30b521e22af29170f33001f005b5168bd0191c2ef5779c8ff642711/68747470733a2f2f7472617669732d63692e6f72672f70726f6f70682f687474702d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/prooph/http-middleware)[![Coverage Status](https://camo.githubusercontent.com/a79267d11e5d0ca50321e5d07a98d15dfea6ed75b3a138425a38174c85f50ca4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70726f6f70682f687474702d6d6964646c65776172652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/prooph/http-middleware?branch=master)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/prooph/improoph)

Important
---------

[](#important)

This library will receive support until December 31, 2019 and will then be deprecated.

For further information see the official announcement here:

Middleware
----------

[](#middleware)

For every bus system a middleware exists and one Middleware to rule them all.

- `CommandMiddleware`: Dispatches the message data to the command bus system
- `QueryMiddleware`: Dispatches the message data to the query bus system
- `EventMiddleware`: Dispatches the message data to the event bus system
- `MessageMiddleware`: Dispatches the message data to the appropriated bus system depending on message type

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

[](#installation)

You can install `prooph/http-middleware` via Composer by adding `"prooph/http-middleware": "^0.1"`as requirement to your composer.json.

Documentation
-------------

[](#documentation)

Documentation is [in the docs tree](docs/book/), and can be compiled using [bookdown](http://bookdown.io).

```
$ php ./vendor/bin/bookdown docs/bookdown.json
$ php -S 0.0.0.0:8080 -t docs/html/
```

Then browse to

Support
-------

[](#support)

- Ask questions on Stack Overflow tagged with [\#prooph](https://stackoverflow.com/questions/tagged/prooph).
- File issues at .
- Say hello in the [prooph gitter](https://gitter.im/prooph/improoph) chat.

Contribute
----------

[](#contribute)

Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.

License
-------

[](#license)

Released under the [New BSD License](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

1322d ago

PHP version history (2 changes)v0.1.0PHP ^7.1

v0.3.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7341005?v=4)[prooph](/maintainers/prooph)[@prooph](https://github.com/prooph)

---

Top Contributors

[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (14 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (13 commits)")[![camuthig](https://avatars.githubusercontent.com/u/5178217?v=4)](https://github.com/camuthig "camuthig (7 commits)")[![oqq](https://avatars.githubusercontent.com/u/7161145?v=4)](https://github.com/oqq "oqq (1 commits)")

---

Tags

cqrshttpmiddlewarephpproophpsrpsr15psr7psr-7middlewarepsr7psr-15messagingpsr15event sourcingcqrsproophservice-bus

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/route

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

6633.1M115](/packages/league-route)[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)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)[jimtools/jwt-auth

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

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

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)

PHPackages © 2026

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