PHPackages                             stcer/aint-queue-client - 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. stcer/aint-queue-client

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

stcer/aint-queue-client
=======================

a client for aint-queue

0.0.1(2y ago)05MITPHPPHP &gt;=7.2

Since Apr 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/stcer/aint-queue-client)[ Packagist](https://packagist.org/packages/stcer/aint-queue-client)[ RSS](/packages/stcer-aint-queue-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Aint Queue Client
=================

[](#aint-queue-client)

[Aint Queue](https://github.com/stcer/aint-queue) 是基于 Swoole 的一个异步队列库, 此项目是一个客户端, 用于向 Aint Queue服务器增加延时任务

Install
-------

[](#install)

```
composer require stcer/aint-queue-client -vvv
```

Example
-------

[](#example)

客户端增加延时任务示例， 参考[example/demo-client.php](example/demo-client.php)

```
use Composer\Autoload\ClassLoader;
use j\AintQueue\Client\AliasMessageEncoder;
use j\AintQueue\Client\Driver\DriverFactory;
use j\AintQueue\Client\Driver\Redis\Queue as RedisQueue;

$loader = require __DIR__ . '/../vendor/autoload.php';

$channel = 'example';
$driverOption = [
    'class' => RedisQueue::class,
    'connection' => [
        'host' => 'redis.jz.cn',
        'port' => 6379,
        'database' => '0',
        // 'password' => 'password',
    ],
    'encoder' => AliasMessageEncoder::class,
];

/** @var RedisQueue $queue */
$queue = DriverFactory::make($channel, $driverOption);
$queue->push('simple', 2);
$queue->push([
    'simple',
    [
        ['info_id' => 10]
    ]
], 5);
```

服务端配置示例

```
use Littlesqx\AintQueue\Driver\Redis\Queue as RedisQueue;
use Littlesqx\AintQueue\Serializer\AliasMessageEncoder;
use Stcer\AintQueueDemo\job\SimpleJob;

return [
    'example' => [
        'driver' => [
            'class' => RedisQueue::class,
            'connection' => [
                'host' => 'redis.jz.cn',
                'port' => 6379,
                'database' => '0',
                // 'password' => 'password',
            ],
            'encoder' => function() {
                $encoder = new AliasMessageEncoder();
                $encoder->addClassMap('NTY', SimpleJob::class);
                $encoder->addClassMap('simple', SimpleJob::class);
                return $encoder;
            },
        ],
        'logger' => [
            'class' => \Littlesqx\AintQueue\Logger\DefaultLogger::class,
            'options' => [
                'level' => \Monolog\Logger::DEBUG,
            ],
        ],
        'pid_path' => '/var/run/aint-queue',
        'consumer' => [
            'sleep_seconds' => 1,
            'memory_limit' => 96,
            'dynamic_mode' => true,
            'capacity' => 20,
            'flex_interval' => 5 * 60,
            'min_worker_number' => 5,
            'max_worker_number' => 30,
        ],
        'job_snapshot' => [
            'interval' => 5 * 60,
            'handler' => [],
        ],
    ],
];
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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

751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccd163784f0e6bce83710fec3f3ae04ce4988cd59522028e9dc6a2141b8bb912?d=identicon)[stcer](/maintainers/stcer)

---

Top Contributors

[![stcer](https://avatars.githubusercontent.com/u/8475503?v=4)](https://github.com/stcer "stcer (3 commits)")

### Embed Badge

![Health badge](/badges/stcer-aint-queue-client/health.svg)

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

###  Alternatives

[nahid/talk

Talk is a Laravel based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.

1.6k58.1k4](/packages/nahid-talk)[servocoder/lumen-horizon

Commands and code-driven configuration for Lumen queues.

2679.4k](/packages/servocoder-lumen-horizon)[heureka/php-rq

Several simple and reliable queues based on Redis

2829.8k](/packages/heureka-php-rq)[carsguide/lumen-horizon

Commands and code-driven configuration for Lumen queues.

1050.6k](/packages/carsguide-lumen-horizon)[not-empty/taurus-publisher-php-lib

PHP library using LUA script to send for redis a job for Taurus queue

131.9k](/packages/not-empty-taurus-publisher-php-lib)[thesmart/php-kue

A producer client for Kue, a redis queue implementation

101.5k](/packages/thesmart-php-kue)

PHPackages © 2026

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