acassan/dispatcher-bundle
acassan/dispatcher-bundle provides a small dispatcher bundle for Laravel/PHP projects, packaging dispatcher-related wiring and configuration so you can register and use a dispatcher in your application with minimal setup.
dispatcher-bundle appears to abstract event dispatching logic, likely aligning with Laravel’s built-in event system but offering additional features (e.g., middleware, custom routing, or async dispatching). Assess whether this fits the current architecture’s need for decoupled event handling, prioritized dispatching, or cross-service communication.Event::dispatch() or queue workers).DispatcherInterface) conflict with existing patterns (e.g., domain events, CQRS).config/app.php or adding a DispatcherServiceProvider?Event::dispatch().Illuminate\Pipeline)?HttpKernel), this bundle may offer tighter integration than Laravel’s native events.composer require acassan/dispatcher-bundle).Dispatcher::dispatch()).Event::dispatch().config/app.php to bind the bundle’s service provider.Event::dispatch() with Dispatcher::dispatch() in critical paths.composer.json to avoid auto-updates.php artisan queue:work).Event::dispatch() calls in the codebase.Event::dispatch() calls gradually.CONTRIBUTING.md or wiki.Dispatcher logging via config/dispatcher.php).| Failure Scenario | Mitigation Strategy | Detection |
|---|---|---|
| Bundle middleware crashes | Fallback to native Event::dispatch() |
Structured logging of dispatcher errors |
| Async events lost in queue | Implement dead-letter queues (DLQ) | Monitor queue backlog |
| Event routing misconfiguration | Use feature flags to disable bundle per event | Integration tests with mock events |
| PHP version incompatibility | Pin PHP version in composer.json |
CI/CD pre-deployment checks |
// Uses DispatcherBundle for async routing).How can I help you explore Laravel packages today?