PHPackages                             daycry/queues - 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. [Caching](/categories/caching)
4. /
5. daycry/queues

ActiveLibrary[Caching](/categories/caching)

daycry/queues
=============

Queues for Codeigniter 4

v2.0.16(10mo ago)1289↓100%MITPHPPHP ^8.0CI passing

Since Nov 25Pushed 10mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (25)Used By (0)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate?business=SYC5XDT23UZ5G&no_recurring=0&item_name=Thank+you%21&currency_code=EUR)

Queues for Codeigniter 4
========================

[](#queues-for-codeigniter-4)

Codeigniter 4 with beanstalk, redis, sync &amp; service bus (azure) queues

[![Build status](https://github.com/daycry/queues/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/daycry/queues/actions/workflows/phpunit.yml)[![Coverage status](https://camo.githubusercontent.com/8a90d26439414913147c9557ac736116dc3b79ea0e03aceaa03e7bc7270f4b9b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6461796372792f7175657565732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/daycry/queues?branch=master)[![Downloads](https://camo.githubusercontent.com/75fcb71713a4701cd7f7c93cdfdcaa86c33523da7c8f2def4b58694492696e76/68747470733a2f2f706f7365722e707567782e6f72672f6461796372792f7175657565732f646f776e6c6f616473)](https://packagist.org/packages/daycry/queues)[![GitHub release (latest by date)](https://camo.githubusercontent.com/9d038a2cb2fb4c1d6b0d82b7f908ac307bf4e854632146c45ac1891b5059dd75/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6461796372792f717565756573)](https://packagist.org/packages/daycry/queues)[![GitHub stars](https://camo.githubusercontent.com/89c8cd330bce3cf3d04fec072bb2ca4fc8e591178a6cae694359f50a94072b93/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6461796372792f717565756573)](https://packagist.org/packages/daycry/queues)[![GitHub license](https://camo.githubusercontent.com/1eeed1a576e198a6d6b4f6cffc9c0b92428fd4684d6e76a06f7413342604d13d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461796372792f717565756573)](https://github.com/daycry/queues/blob/master/LICENSE)

Installation via composer
-------------------------

[](#installation-via-composer)

Use the package with composer install

```
> composer require daycry/queues

```

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

[](#configuration)

Run command:

```
> php spark queues:publish

```

This command will copy a config file to your app namespace. Then you can adjust it to your needs. By default file will be present in `app/Config/Queue.php`.

Allowed tasks

TasksurlcommandclassesshellUsage Job Class
---------------

[](#usage-job-class)

URL

```
use Daycry\Queues\Job;

$job = new Job();
$job = $job->setQueue('default')
    ->url('https://httpbin.org/post', [
            'verify' => false,
            'method' => 'post',
            'body' => ['param1' => 'p1'],
            'dataType' => 'json',
            'headers' => [
                'X-API-KEY' => '1234'
            ]
        )
    ->enqueue();
```

COMMAND

```
use Daycry\Queues\Job;

$job = new Job();
$job = $job->command('foo:bar')->enqueue('default');
```

CLASSES

```
use Daycry\Queues\Job;

$job = new Job();
$job->classes(\Tests\Support\Classes\Example::class, 'run', ['constructor' => 'Contructor', 'method' => ['param1' => 1, 'param2' => 2]])->enqueue('default');
```

You can pass options in third parameter that contains paraterms in construct function and/or method.

SHELL

```
use Daycry\Queues\Job;

$job = new Job();
$job->shell('ls')->enqueue('default');
```

Job Scheduled
-------------

[](#job-scheduled)

```
$dateTimeObj= new DateTime('now');
$dateTimeObj->add(new DateInterval("PT1H"));

$job = new Job();
$job->shell('ls');
$job->scheduled($dateTimeObj);
$result = $job->enqueue('default');
```

Job Callback
------------

[](#job-callback)

You can configure a callback using 'URL' type.

```
$job->setCallback('https://httpbin.org/post', ['method' => 'post', 'headers' =>['X-API-KEY' => '1234']]);
```

Custom Methods
--------------

[](#custom-methods)

Beanstalk and Service Bus have custom methods

BEANSTALK

```
use Daycry\Queues\Job;

$job = new Job();
$job->shell('ls')->setPriority(10)->setTtr(3600)->enqueue('default');
```

SERVICE BUS

```
use Daycry\Queues\Job;

$job = new Job();
$job->shell('ls')->setLabel('label')->enqueue('default');
```

Usage Worker
------------

[](#usage-worker)

```
> cd /path-to-your-project && php spark queues:worker default

```

On default is the name of queue.

If you want to execute only one time the worker, you can do this:

```
> cd /path-to-your-project && php spark queues:worker default --oneTime

```

In order to use these functions, the class must be extended.

You can extends the worker command for customize early and late methods.

```
use Daycry\Queues\Job;

$this->earlyChecks(Job $j);

//job execution

$this->lateChecks($j);

$this->earlyCallbackChecks(Job $j);

//callback execution

$this->lateCallbackChecks($j);
```

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance56

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

Every ~40 days

Recently: every ~80 days

Total

24

Last Release

324d ago

Major Versions

v1.0.6 → v2.0.02023-11-20

PHP version history (2 changes)v1.0.0PHP &gt;=7.4 || ^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b0f66565d5c9ca3c84fb294e04f8d5e0b9a867d9c06f83b95bf168bd6fcf9bc?d=identicon)[daycry](/maintainers/daycry)

---

Top Contributors

[![daycry](https://avatars.githubusercontent.com/u/7590335?v=4)](https://github.com/daycry "daycry (66 commits)")

---

Tags

redisbeanstalkservice-bus

### Embed Badge

![Health badge](/badges/daycry-queues/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5311.0M13](/packages/clue-redis-protocol)[enqueue/magento2-enqueue

Message Queue solutions for Magento2. Supports RabbitMQ, AMQP, STOMP, Amazon SQS, Kafka, Redis, Google PubSub, Gearman, Beanstalk, Google PubSub

4918.8k](/packages/enqueue-magento2-enqueue)

PHPackages © 2026

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