PHPackages                             codemonster-ru/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. codemonster-ru/queue

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

codemonster-ru/queue
====================

Queue and job primitives for Annabel applications.

v1.0.0(today)043↑2341.9%MITPHPPHP &gt;=8.2

Since Jun 10Pushed todayCompare

[ Source](https://github.com/codemonster-ru/queue)[ Packagist](https://packagist.org/packages/codemonster-ru/queue)[ Docs](https://github.com/codemonster-ru/queue)[ RSS](/packages/codemonster-ru-queue/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Codemonster Queue
=================

[](#codemonster-queue)

Queue and job primitives for Annabel applications.

Usage
-----

[](#usage)

```
use Codemonster\Queue\Contracts\JobInterface;
use Codemonster\Queue\QueueManager;

final class SendWelcomeEmail implements JobInterface
{
    public function handle(): void
    {
        // Send the email.
    }
}

$manager = new QueueManager([
    'default' => 'sync',
    'connections' => [
        'sync' => [
            'driver' => 'sync',
        ],
    ],
]);

$manager->connection()->push(new SendWelcomeEmail());
```

The package ships with `sync`, `database`, and `redis` drivers. The Redis driver uses the PHP Redis extension when no explicit client object is configured:

```
$manager = new QueueManager([
    'default' => 'redis',
    'connections' => [
        'redis' => [
            'driver' => 'redis',
            'host' => '127.0.0.1',
            'port' => 6379,
            'database' => 0,
            'prefix' => 'queue:',
            'retry_after' => 60,
            'max_attempts' => 3,
        ],
    ],
]);
```

Database Driver
---------------

[](#database-driver)

The database driver stores serialized jobs in a `jobs` table and can be processed by `Worker`:

```
use Codemonster\Queue\Contracts\WorkableQueueInterface;
use Codemonster\Queue\Worker;

/** @var WorkableQueueInterface $queue */
$queue = $manager->connection('database');
$queue->push(new SendWelcomeEmail());

(new Worker($queue))->workOnce();
```

Jobs can override their retry policy and timeout through `JobOptionsInterface`:

```
use Codemonster\Queue\Contracts\JobOptionsInterface;

final class SendWelcomeEmail implements JobOptionsInterface
{
    public function handle(): void
    {
        // Send the email.
    }

    public function maxAttempts(): int
    {
        return 5;
    }

    public function backoff(): int|array
    {
        return [10, 30, 120];
    }

    public function timeout(): int
    {
        return 30;
    }
}
```

Timeouts require the PCNTL extension. A backoff array uses the delay matching the current attempt and keeps using its last value for later attempts.

Failed jobs stored by the database driver can be inspected and retried:

```
$failed = $manager->failedJobs('database');

foreach ($failed->all() as $job) {
    echo $job->id() . ': ' . $job->exception();
}

$failed->retry('1');
$failed->retryAll();
$failed->flush();
```

Jobs should contain serializable data. Runtime services such as PDO connections should be resolved inside `handle()` by the application container or another application-level dependency mechanism.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance100

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33142935?v=4)[Kirill Kolesnikov](/maintainers/KolesnikovKirill)[@KolesnikovKirill](https://github.com/KolesnikovKirill)

---

Top Contributors

[![KolesnikovKirill](https://avatars.githubusercontent.com/u/33142935?v=4)](https://github.com/KolesnikovKirill "KolesnikovKirill (1 commits)")

---

Tags

phpqueuejobscodemonsterannabel

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

43140.3k](/packages/harris21-laravel-fuse)[microsoft/azure-storage-queue

This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage Queue APIs.

142.7M18](/packages/microsoft-azure-storage-queue)[chh/kue

A simple interface to multiple job queue implemenations

194.4k](/packages/chh-kue)

PHPackages © 2026

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