2017 © Pedro Peláez
 

library psr7-middleware

PSR-7 Middleware for prooph components

image

prooph/psr7-middleware

PSR-7 Middleware for prooph components

  • Saturday, July 21, 2018
  • by prooph
  • Repository
  • 5 Watchers
  • 13 Stars
  • 4,781 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 10 Versions
  • 9 % Grown

The README.md

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 to see how to configure the different bus types., (*1)

Deprecated

Please use prooph/http-middleware instead., (*2)

Build Status Coverage Status Gitter, (*3)

Middleware

For every bus system a middleware exists and one Middleware to rule them all., (*4)

  • 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

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

Documentation

Documentation is in the docs tree, and can be compiled using bookdown., (*6)

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

Then browse to http://localhost:8080/, (*7)

Support

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., (*8)

License

Released under the New BSD License., (*9)

The Versions