vtitar/background-tasks-symfony
Run background tasks in Symfony with a simple, lightweight API. Offload time-consuming work from requests, process jobs asynchronously, and keep your application responsive with minimal setup.
This is a Symfony bundle, not a Laravel package, so a Laravel developer's first move is to confirm the fit before installing anything. It belongs in a Symfony application (or a Symfony bundle embedded in a larger PHP service) that wants fire-and-forget background work without standing up a queue worker like Horizon or a broker like Redis/SQS.
First steps:
README and the src/ directory of the v0.1.2 tag on GitHub — the release notes are only a changelog link, so the code and tests are your source of truth for what actually changed between v0.1.1 and v0.1.2.config/bundles.php (Symfony) and check for a DependencyInjection/Configuration.php to see what config keys exist.If you are on Laravel and need background work, the equivalent native tools are queued jobs (ShouldQueue), dispatch(), and php artisan queue:work. Only reach for this bundle if you maintain a Symfony service alongside your Laravel app and want a consistent pattern across both.
__invoke() or run() method. This mirrors Laravel's job classes and keeps the bundle's surface area small.kernel.terminate listener, or Laravel's DB::afterCommit).config/packages/*.yaml and commit them; do not rely on defaults across environments.config/background-tasks.php, and no facade. Do not expect dispatch() or Bus::dispatch() idioms. You are wiring Symfony services by hand.0.1.x patch, and the only public artifact is a compare link. Before upgrading from v0.1.1, diff the tags (git diff v0.1.1..v0.1.2) and check the CHANGELOG.md — pre-1.0 projects can and do ship behavior changes in patch versions.composer.json ("vtitar/background-tasks-symfony": "0.1.2") and read the source before relying on any method signature.sleep() in the task.Request objects. Use scalars, arrays, or DTOs implementing \Serializable.EventDispatcher integration and a TaskInterface/HandlerInterface. Those are the hooks for decorating behavior (metrics, tracing, retry) without forking the bundle.debug in config/packages/dev/, tail the Symfony log, and add a dump() inside the dispatch path to confirm the task is actually queued and not executed inline on the request thread.How can I help you explore Laravel packages today?