konradpodgorski/command-bus-bundle
A command bus package for PHP/Laravel that dispatches commands to their handlers, promoting clean separation between application logic and infrastructure. It provides a structured way to organize command execution and middleware-style handling.
composer.json.Consider it when:
Look elsewhere when:
Illuminate\Bus (dispatch(), Bus::chain()/batch(), ShouldQueue, bus middleware). This is a disqualifier, not a tradeoff.To executives: Don't adopt this as a dependency. The underlying pattern — a command bus that centralizes transactional and cross-cutting logic for write operations — is sound and reduces coupling. This particular package has zero community adoption and a single maintainer, which is unacceptable for anything on a critical path. Recommendation: a small, time-boxed engineering slice (a few engineer-days) to standardize our write path using framework-native tooling, using this repo purely as a design reference. Expected outcome: fewer defects around partial writes and a simpler audit story — cost is engineer-days, not a new vendor relationship.
To engineering: Treat this as a reference implementation, not a library. Read the bundle's service definitions and compiler passes to see how a command bus is wired into a container, then replicate the pattern with our own handlers and middleware — or use the framework-native bus (Symfony Messenger / Illuminate\Bus), which gives the same abstraction plus async, retries, and queuing for free. If anyone still wants it as a dependency, pin/vendor/fork it and keep it off the critical write path. Also flag the mismatch: the ticket says Laravel, the package is Symfony-only — please reconcile before this reaches a backlog.
How can I help you explore Laravel packages today?