Search by

webware / messagebus-event

tyrsson

Phly EventDispatcher support for MessageBus

Package info

github.com/webinertia/messagebus-event

pkg:composer/webware/messagebus-event

Statistics

Installs: 4 134

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 4

2.0.0-beta.10 2026-11-22 16:08 UTC

README

PHP Version Latest Version License Continuous Integration codecov Mutation testing badge

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 lives under docs/2.0/:

  • 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 ConfigProvider config shape.
  • Contributing - local setup, running tests, and static analysis.

Development

composer install
composer test-all      # unit + integration tests
composer bench          # PHPBench benchmarks (bench/)
mago format && mago lint && mago analyze

See Contributing for details.

License

BSD-3-Clause