prooph / http-middleware
http middleware for prooph components
Installs: 39 168
Dependents: 1
Suggesters: 1
Security: 0
Stars: 11
Watchers: 8
Forks: 4
Open Issues: 6
Requires
- php: ^7.4 || ^8.0
- fig/http-message-util: ^1.1
- prooph/common: ^4.1
- prooph/service-bus: ^6.0
- psr/http-message: ^1.0
- psr/http-server-middleware: ^1.0
- react/promise: ^2.2
Requires (Dev)
- laminas/laminas-servicemanager: ^3.1
- php-coveralls/php-coveralls: ^2.2
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- prooph/bookdown-template: ^0.2.3
- prooph/php-cs-fixer-config: ^0.5
- psr/container: ^1.0
- sandrokeil/interop-config: ^2.0.1
- sebastian/comparator: ^4.0
Suggests
- psr/container: ^1.0 for usage of provided factories
- sandrokeil/interop-config: ^2.0 for usage of provided factories
Conflicts
- sandrokeil/interop-config: <2.0.1
This package is auto-updated.
Last update: 2024-11-04 21:26:19 UTC
README
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.
Important
This library will receive support until December 31, 2019 and will then be deprecated.
For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html
Middleware
For every bus system a middleware exists and one Middleware to rule them all.
CommandMiddleware
: Dispatches the message data to the command bus systemQueryMiddleware
: Dispatches the message data to the query bus systemEventMiddleware
: Dispatches the message data to the event bus systemMessageMiddleware
: 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.
Documentation
Documentation is in the docs tree, and can be compiled using bookdown.
$ php ./vendor/bin/bookdown docs/bookdown.json $ php -S 0.0.0.0:8080 -t docs/html/
Then browse to http://localhost:8080/
Support
- Ask questions on Stack Overflow tagged with #prooph.
- File issues at https://github.com/prooph/http-middleware/issues.
- Say hello in the prooph gitter chat.
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
Released under the New BSD License.