This package is abandoned and no longer maintained. The author suggests using the prooph/http-middleware package instead.

PSR-7 Middleware for prooph components

v0.8 2017-12-17 10:30 UTC

This package is auto-updated.

Last update: 2022-02-01 12:55:30 UTC


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


Please use prooph/http-middleware instead.

Build Status Coverage Status Gitter


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


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


Documentation is in the docs tree, and can be compiled using bookdown.

$ php ./vendor/bin/bookdown docs/bookdown.json
$ php -S -t docs/html/

Then browse to http://localhost:8080/



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.


Released under the New BSD License.