webware / messagebus-event
Phly EventDispatcher support for MessageBus
2.0.0-beta.6
2026-11-07 06:52 UTC
Requires
- php: ~8.4.1 || ~8.5.0
- psr/event-dispatcher: ^1.0
- webware/message-bus: ^2.0.0-beta.3
- webware/webware-event: ^1.0.0-alpha.2
Requires (Dev)
- infection/infection: ^0.35.0
- laminas/laminas-servicemanager: ^4.0.0
- phly/phly-event-dispatcher: ^1.5.0
- phpbench/phpbench: ^1.7
- phpunit/phpunit: ^13.4.4
- roave/security-advisories: dev-master
- webware/webware-tools: ^1.0.0-rc.8
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-09 02:21:36 UTC
README
Event integration for webware/message-bus, built on top of
phly/phly-event-dispatcher (PSR-14). It adds pre/post
"handle" events for both Command and Query messages, dispatched via middleware in the bus pipeline. Query
events are opt-in; Command events are wired into the default pipeline.
Installation
composer require webware/messagebus-event webware/message-bus
Documentation
Full documentation is published at https://docs.webinertia.net/messagebus-event/v2/.
- Getting Started - requirements, installation, and wiring a
ServiceManager. - Usage Examples - registering listeners, opting in to Query events, custom events, stopping propagation.
- API Reference - every public class, interface, trait, and the
ConfigProviderconfig shape. - Contributing - local setup, running tests, and static analysis.
Documentation for the 1.x line is archived at https://docs.webinertia.net/messagebus-event/v1/.
Development
composer install composer test-all # unit + integration tests composer bench # PHPBench benchmarks (bench/) mago format && mago lint && mago analyze
See Contributing for details.