Queues for CodeIgniter 4 framework

dev-develop 2024-04-09 07:04 UTC

This package is auto-updated.

Last update: 2024-05-09 07:21:32 UTC


Queues for the CodeIgniter 4 framework.

PHPUnit PHPStan Deptrac Coverage Status

PHP CodeIgniter License


composer require codeigniter4/queue

Migrate your database:

php spark migrate --all


Publish configuration file:

php spark queue:publish

Create your first Job:

php spark queue:job Example

Add it to the $jobHandlers array in the app\Config\Queue.php file:

// ...

use App\Jobs\Example;

// ...

public array $jobHandlers = [
    'my-example' => Example::class

// ...

Basic usage

Add job to the queue:

service('queue')->push('queueName', 'my-example', ['data' => 'array']);

Run the queue worker:

php spark queue:work queueName


Read the full documentation: https://queue.codeigniter.com


We accept and encourage contributions from the community in any shape. It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome. See the CONTRIBUTING.md file for details.