webware / message-bus
MessageBus for Mezzio
Requires
- php: ~8.4.1 || ~8.5.0
- psr/container: ^2.0
Requires (Dev)
- infection/infection: ^0.34.1
- laminas/laminas-servicemanager: ^4.0.0
- php-standard-library/type: ^6.2
- phpbench/phpbench: ^1.7
- phpunit/phpunit: ^12.5.30
- roave/backward-compatibility-check: ^8.21.0
- roave/security-advisories: dev-master
Suggests
- laminas/laminas-servicemanager: Laminas\ServiceManager component
README
A command/query message bus for Mezzio and other PSR-11 based applications. Messages (commands or queries) are dispatched through a configurable middleware pipeline to their mapped handler, and a result flows back out through that same pipeline.
Installation
composer require webware/message-bus
Registers itself as a Laminas/Mezzio config provider (Webware\MessageBus\ConfigProvider) via
composer's extra.laminas.config-provider.
Support
- Join our Discord to ask questions, report bugs, or discuss the library with the maintainers and other users. Please post support questions in the
#message-buschannel. - Report bugs or request features via GitHub Issues
Documentation
Full documentation lives in docs/v1:
Testing
composer test # unit tests composer test-integration # integration tests composer test-all # both
Acknowledgments
The middleware pipeline design in this package is directly inspired by, and mirrors the mechanics of, the PSR-15-style pipeline used in mezzio/mezzio.
This package was built for the Laminas/Mezzio ecosystem and its users, and that debt is gladly owed, credit belongs with the Laminas/Mezzio maintainers and contributors for the original design. See mezzio/mezzio and its LICENSE (BSD-3-Clause) for the source of that inspiration.
License
BSD-3-Clause