roslov/queue-bundle
A lightweight Laravel/PHP queue bundle for configuring workers, dispatching background jobs, and managing queued tasks. roslov/queue-bundle aims to simplify queue setup and integration so your application can process asynchronous work with minimal configuration.
composer require roslov/queue-bundle:^2.2.1. Pinning to ^2.2.1 (rather than ^2.2) matters here — 2.2.1 contains the exception shortener fix, and 2.2.0 will happily satisfy the looser constraint on existing installs.vendor:publish of config, no facade. Budget for a thin bridge (a service provider that registers the bundle's services and a small Artisan command that invokes the worker) rather than assuming composer require is the whole job.App\Queue\Dispatcher with push(Job $job): void. When you eventually migrate to a native Laravel queue driver (or the reverse), you change one class instead of every call site.DB::transaction means the worker can pick up a job whose row is not yet committed. Either enqueue after the transaction commits (DB::afterCommit) or accept at-least-once semantics and make handlers idempotent. Prefer the latter as the default posture.updateOrCreate keyed on a business identifier carried in the payload.queue:work-bundle command that bootstraps the bundle's container and runs its worker loop keeps your ops runbook (php artisan ..., Horizon-style supervision, deploy hooks) uniform with the rest of the app.vendor:publish, build the bundle's config array in a dedicated config/queue_bundle.php and translate it in your service provider. This gives you env-var control and makes the mapping reviewable in a diff..editorconfig, .gitattributes, README dependency bumps, typos) are cosmetic. The one to sanity-check is .gitattributes: if export-ignore rules changed, composer install --prefer-dist archives may now include or omit files differently than 2.2.0. Rarely matters, occasionally breaks tooling that reads package files from vendor/.--max-jobs/--timeout equivalent and recycle the process; always run under a supervisor (Supervisor, systemd, or a queue-aware orchestrator) rather than in a terminal.How can I help you explore Laravel packages today?