PHPackages                             michalsn/codeigniter-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. [Queues &amp; Workers](/categories/queues)
4. /
5. michalsn/codeigniter-queue

ActiveLibrary[Queues &amp; Workers](/categories/queues)

michalsn/codeigniter-queue
==========================

Queues for CodeIgniter 4 framework

643.9k↓50%19[1 issues](https://github.com/codeigniter4/queue/issues)PHPCI passing

Since Nov 9Pushed 3mo ago9 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

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

35

—

LowBetter than 80% of packages

Maintenance55

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.5% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/459185?v=4)[Michal Sniatala](/maintainers/michalsn)[@michalsn](https://github.com/michalsn)

---

Top Contributors

[![michalsn](https://avatars.githubusercontent.com/u/459185?v=4)](https://github.com/michalsn "michalsn (120 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] (3 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

codeignitercodeigniter4php81queuequeue-workers

### Embed Badge

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

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2228.8M171](/packages/react-async)[react/promise-stream

The missing link between Promise-land and Stream-land for ReactPHP

11512.9M45](/packages/react-promise-stream)[illuminate/bus

The Illuminate Bus package.

6043.8M409](/packages/illuminate-bus)

PHPackages © 2026

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