Download the PHP package aaronfrancis/enqueue without Composer
On this page you can find all versions of the php package aaronfrancis/enqueue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aaronfrancis/enqueue
More information about aaronfrancis/enqueue
Files in aaronfrancis/enqueue
Package enqueue
Short Description Declarative job enqueueing with schedule-aware dispatch for Laravel
License MIT
Informations about the package enqueue
Enqueue
Declarative job enqueueing with schedule-aware dispatch for Laravel.
Jobs often need to dispatch themselves on a schedule—syncing data every hour, processing uploads every few minutes, sending reports on weekdays. Normally this means scattering scheduling logic across routes/console.php while the job sits elsewhere, or writing awkward wrapper commands.
Enqueue lets the job own its entire lifecycle. Each job declares how to enqueue itself (maybe one instance per warehouse, or one per pending upload) and optionally when (hourly, weekdays, or custom logic). Run jobs:enqueue every minute and each job takes care of the rest.
Installation
Usage
Implement the Enqueueable interface on any job:
Schedule the command to run every minute:
Controlling When Jobs Enqueue
Add a shouldEnqueue() method to control timing:
Or return a boolean for custom logic:
Preview Mode
See what would be enqueued without dispatching:
Requirements
- PHP 8.2+
- Laravel 10, 11, or 12.24+
License
MIT
All versions of enqueue with dependencies
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0