micro-module/command-bus
A lightweight command bus for Laravel micro-modules that dispatches commands to their handlers, supports middleware pipelines, and keeps controllers thin by separating request handling from business logic.
Illuminate\Bus\Dispatcher (dispatch, dispatchSync, chains), which covers most of what this package appears to offer. The decision worth making is about conventions and middleware standards, not about adopting this dependency.Adoption criteria — all of them are narrow:
micro-module/* ecosystem and need the shared command-bus contract those modules expect.Look elsewhere in the common case:
laravel-command-bus-style packages, or Symfony Messenger provide maintained middleware, retries, and queue integration.Executives: This is a pattern decision, not a vendor commitment. The command-bus pattern lets us treat each business operation — submit an order, process a payment, provision a tenant — as one auditable, retry-safe, deferrable unit, which is exactly what enterprise buyers probe during diligence. The package itself is unmaintained (last release 2021, no adopters) and carries unnecessary dependency risk, so I recommend adopting the pattern on Laravel's built-in bus with our own thin contracts. Cost is roughly one sprint of standards work; benefit is modularity without a rewrite and auditable operations.
Engineering: Treat this repo as a reference implementation, not a dependency. It confirms the shape we want (command + handler + bus) but gives us no middleware, no tests, and no Laravel 10/11 support. Proposal: define our own Command/Handler contracts, dispatch through Illuminate\Bus\Dispatcher, and put idempotency, tenant scoping, and per-command metrics into middleware — that is where the product value actually sits. Revisit third-party bus libraries only if we outgrow native dispatch.
How can I help you explore Laravel packages today?