PHPackages                             xiaolin/swoole-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. xiaolin/swoole-queue

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

xiaolin/swoole-queue
====================

queue library for swoole

0.3.1(7y ago)16MITPHPPHP &gt;=7.0

Since Jun 27Pushed 7y agoCompare

[ Source](https://github.com/missxiaolin/x-swoole-queue)[ Packagist](https://packagist.org/packages/xiaolin/swoole-queue)[ RSS](/packages/xiaolin-swoole-queue/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

x-swoole-queue
==============

[](#x-swoole-queue)

### 执行测试

[](#执行测试)

```
php run tests/queue.php
vendor/bin/phpunit

```

### 使用

[](#使用)

```
class TestQueue extends Task
{
    // 消息队列Redis键值 list lpush添加队列
    protected $queueKey = 'test:queue:queue';
    // 延时消息队列的Redis键值 zset
    protected $delayKey = 'test:queue:delay';
    // pid地址
    protected $pidPath = TESTS_PATH . '/queue.pid';

    public $file = TESTS_PATH . '/test.cache';

    /**
     * @param $recv
     * @return mixed|void
     */
    protected function handle($recv)
    {
        File::getInstance()->put($this->file, 'upgrade');
    }
}

$queue = new TestQueue();
$queue->setRedisConfig(127.0.0.1, 'xiaolin', 1, 8366)
    ->run();

$this->redis->lPush('test:queue:queue', 'xxxx');

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Every ~28 days

Total

4

Last Release

2795d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05b5e817e8addc30803144d902d3ed6028bc474bf6cc82d872180cc5903b373b?d=identicon)[missxiaolin](/maintainers/missxiaolin)

---

Top Contributors

[![missxiaolin](https://avatars.githubusercontent.com/u/26253292?v=4)](https://github.com/missxiaolin "missxiaolin (33 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/messenger

Helps applications send and receive messages to/from other applications or via message queues

1.1k120.7M958](/packages/symfony-messenger)[symfony/amazon-sqs-messenger

Symfony Amazon SQS extension Messenger Bridge

4612.5M15](/packages/symfony-amazon-sqs-messenger)[pmg/queue

A task queue framework for PHP

13460.6k8](/packages/pmg-queue)[webfactory/icu-translation-bundle

Enables ICU message formatting for translations in Symfony applications.

2761.8k](/packages/webfactory-icu-translation-bundle)[amphp/cluster

Building multi-core network applications with PHP.

6224.8k1](/packages/amphp-cluster)[bricev/jobqueue

JobQueue is a PHP component that queues `tasks` defining `jobs` which can be executed by asynchronous and/or distributed `workers`

362.4k](/packages/bricev-jobqueue)

PHPackages © 2026

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