simple-bus/asynchronous-bundle
Symfony bundle for asynchronous command/event handling with SimpleBus. Integrates async middleware and message dispatching so work can be queued and processed later. Part of the SimpleBus ecosystem; docs and issue tracking in the main repository.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us offload slow, blocking tasks (e.g., sending emails, processing orders) to background workers, improving response times for users—like adding a ‘silent assistant’ to our app. It’s a lightweight, open-source solution that integrates with Laravel’s existing queue system, reducing infrastructure costs. Risks are manageable: it’s unmaintained, but we can fork it or migrate to a supported tool (like Symfony Messenger) later. Think of it as a quick win for performance without upfront costs."
For Engineering: *"SimpleBus/AsynchronousBundle gives us a Symfony-native way to handle messages asynchronously in Laravel, with key benefits:
ProcessOrder), making them reusable and testable.For Developers: *"This adds message-driven async processing to Laravel, similar to Symfony Messenger but with a simpler setup. Here’s how it fits:
// Define a message interface
interface SendEmailMessage { public function getEmail(): string; }
// Dispatch via SimpleBus
$this->bus->dispatch(new SendEmailMessage($user->email));
// Consume in Laravel (custom listener)
public function handle(SendEmailMessage $message) {
Mail::to($message->getEmail())->send(new WelcomeEmail());
}
Gotchas:
How can I help you explore Laravel packages today?