PHPackages                             codeigniter4/queue - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. codeigniter4/queue

ActiveLibrary[Database &amp; ORM](/categories/database)

codeigniter4/queue
==================

Queues for CodeIgniter 4 framework

v1.0.0(4mo ago)71194.6k—0.5%23[3 issues](https://github.com/codeigniter4/queue/issues)[2 PRs](https://github.com/codeigniter4/queue/pulls)3MITPHPPHP ^8.2CI passing

Since Feb 15Pushed 4w ago10 watchersCompare

[ Source](https://github.com/codeigniter4/queue)[ Packagist](https://packagist.org/packages/codeigniter4/queue)[ Docs](https://github.com/codeigniter4/queue)[ RSS](/packages/codeigniter4-queue/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (9)Used By (3)

CodeIgniter Queue
=================

[](#codeigniter-queue)

Queues for the CodeIgniter 4 framework.

[![PHPUnit](https://github.com/codeigniter4/queue/actions/workflows/phpunit.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/phpunit.yml)[![PHPStan](https://github.com/codeigniter4/queue/actions/workflows/phpstan.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/phpstan.yml)[![Deptrac](https://github.com/codeigniter4/queue/actions/workflows/deptrac.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/deptrac.yml)[![Coverage Status](https://camo.githubusercontent.com/340b765a434782eff6c435d3dd0d776d85ee4c4a08fab997a69bf78c2887e0ef/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636f646569676e69746572342f71756575652f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/codeigniter4/queue?branch=develop)

[![PHP](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)[![CodeIgniter](https://camo.githubusercontent.com/8867c0cb2bfb4e11f527658f45d11bea936efb5a06e66b10e576912cf40874e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e332d626c7565)](https://camo.githubusercontent.com/8867c0cb2bfb4e11f527658f45d11bea936efb5a06e66b10e576912cf40874e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e332d626c7565)[![License](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)

Note

A queue system is typically used to handle resource-intensive or time-consuming tasks (e.g., image processing, sending emails) that are to be run in the background. It can also be a way to postpone certain activities that are to be executed automatically later.

Installation
------------

[](#installation)

```
composer require codeigniter4/queue

```

Migrate your database:

```
php spark migrate --all

```

Configuration
-------------

[](#configuration)

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
-----------

[](#basic-usage)

Add job to the queue:

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

Run the queue worker:

```
php spark queue:work queueName

```

Docs
----

[](#docs)

Read the full documentation:

Contributing
------------

[](#contributing)

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](CONTRIBUTING.md) file for details.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance85

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65f693f45781e767ed8557b776fd775309e7a262629892b99cf38462931e9b26?d=identicon)[lonnieezell](/maintainers/lonnieezell)

---

Top Contributors

[![michalsn](https://avatars.githubusercontent.com/u/459185?v=4)](https://github.com/michalsn "michalsn (122 commits)")[![kenjis](https://avatars.githubusercontent.com/u/87955?v=4)](https://github.com/kenjis "kenjis (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![formbay-sanil](https://avatars.githubusercontent.com/u/167741292?v=4)](https://github.com/formbay-sanil "formbay-sanil (1 commits)")[![datamweb](https://avatars.githubusercontent.com/u/9530214?v=4)](https://github.com/datamweb "datamweb (1 commits)")[![lonnieezell](https://avatars.githubusercontent.com/u/51931?v=4)](https://github.com/lonnieezell "lonnieezell (1 commits)")[![yassinedoghri](https://avatars.githubusercontent.com/u/11021441?v=4)](https://github.com/yassinedoghri "yassinedoghri (1 commits)")

---

Tags

codeignitercodeigniter4queuequeue-workersdatabasecodeigniterredisqueueprediscodeigniter4

### Embed Badge

![Health badge](/badges/codeigniter4-queue/health.svg)

```
[![Health](https://phpackages.com/badges/codeigniter4-queue/health.svg)](https://phpackages.com/packages/codeigniter4-queue)
```

###  Alternatives

[michalsn/codeigniter-queue

Queues for CodeIgniter 4 framework

714.1k](/packages/michalsn-codeigniter-queue)[tatter/relations

Entity relationships for CodeIgniter 4

8924.1k1](/packages/tatter-relations)[tatter/schemas

Database schema management, for CodeIgniter 4

2330.4k1](/packages/tatter-schemas)[anorgan/qutee

Simple queue manager and task processor for PHP

711.9k1](/packages/anorgan-qutee)[endeveit/cache

Simple caching library with support for tags.

1711.4k](/packages/endeveit-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
