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

Abandoned → [prooph/http-middleware](/?search=prooph%2Fhttp-middleware)Library[HTTP &amp; Networking](/categories/http)

prooph/psr7-middleware
======================

PSR-7 Middleware for prooph components

v0.8(8y ago)1312.8k82BSD-3-ClausePHPPHP ^7.1

Since Feb 9Pushed 7y ago5 watchersCompare

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

READMEChangelog (8)Dependencies (16)Versions (9)Used By (2)

PSR-7 middleware for prooph components
======================================

[](#psr-7-middleware-for-prooph-components)

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

Deprecated
----------

[](#deprecated)

Please use [prooph/http-middleware](https://github.com/prooph/http-middleware) instead.

[![Build Status](https://camo.githubusercontent.com/bb64c78daeffbf7a1a4d831df767b9ed50008e4302c2b5566b4e643cb46364a3/68747470733a2f2f7472617669732d63692e6f72672f70726f6f70682f707372372d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/prooph/psr7-middleware)[![Coverage Status](https://camo.githubusercontent.com/2bdf8cdea5198296fad104d43176ce6207ac3cb6cf06bae56c6b7382c8e1b273/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70726f6f70682f707372372d6d6964646c65776172652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/prooph/psr7-middleware?branch=master)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/prooph/improoph)

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/psr7-middleware` via Composer by adding `"prooph/psr7-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

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

8

Last Release

3074d ago

PHP version history (2 changes)v0.1PHP ^5.5 || ^7.0

v0.4PHP ^7.1

### 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 (32 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (29 commits)")[![sandrokeil](https://avatars.githubusercontent.com/u/3597436?v=4)](https://github.com/sandrokeil "sandrokeil (7 commits)")[![bgaleotti](https://avatars.githubusercontent.com/u/333036?v=4)](https://github.com/bgaleotti "bgaleotti (3 commits)")[![codeliner](https://avatars.githubusercontent.com/u/5131987?v=4)](https://github.com/codeliner "codeliner (2 commits)")

---

Tags

middlewarephpphp7proophpsr-7middlewarepsr7psr-15messagingpsr15event sourcingcqrsproophservice-bus

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[prooph/http-middleware

http middleware for prooph components

1145.0k](/packages/prooph-http-middleware)[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)[wellrested/wellrested

Simple PHP Library for RESTful APIs

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

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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