2017 © Pedro Peláez
 

library http-middleware

http middleware for prooph components

image

prooph/http-middleware

http middleware for prooph components

  • Tuesday, April 10, 2018
  • by prooph
  • Repository
  • 5 Watchers
  • 6 Stars
  • 1,069 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 4 Forks
  • 7 Open issues
  • 3 Versions
  • 102 % Grown

The README.md

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

Build Status Coverage Status Gitter, (*2)

Important

This library will receive support until December 31, 2019 and will then be deprecated., (*3)

For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html, (*4)

Middleware

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

  • 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/http-middleware via Composer by adding "prooph/http-middleware": "^0.1" as requirement to your composer.json., (*6)

Documentation

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

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

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

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

License

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

The Versions