PHPackages                             flc/php-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. [CLI &amp; Console](/categories/cli)
4. /
5. flc/php-queue

ActiveLibrary[CLI &amp; Console](/categories/cli)

flc/php-queue
=============

php redis queue

v1.0(9y ago)132286MITPHP

Since Feb 24Pushed 7y ago3 watchersCompare

[ Source](https://github.com/flc1125/php-queue)[ Packagist](https://packagist.org/packages/flc/php-queue)[ RSS](/packages/flc-php-queue/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

php+redis消息队列
=============

[](#phpredis消息队列)

环境
--

[](#环境)

- PHP &gt;= 5.4
- composer

安装
--

[](#安装)

```
composer require flc/php-queue

```

使用范例
----

[](#使用范例)

producer

```
/**
 * 任务创建
 */
require_once __DIR__ . '/bootstrap.php';

use Flc\Queue\Manager;
use Jobs\Demo;

// 创建工作
$demo = new Demo('测试');

// 推送到队列
for ($i = 0; $i push($demo);
}

echo Manager::instance()->count();
```

consumer

```
/**
 * 任务执行者（常驻）
 */
require_once __DIR__ . '/bootstrap.php';

use Flc\Queue\Manager;
use Jobs\Demo;

if ('cli' !== php_sapi_name()) {
    die('必须在命令行模式下运行');
}

while (true) {
    // 从队列拉取任务
    $job = Manager::instance()->pull();

    // 如无任务，则休息2秒
    if (! $job) {
        sleep(2);
        continue;
    }

    try {
        call_user_func_array([$job, 'handle'], []);
    } catch (Exception $e) {
        echo $e->getMessage();
    }
}
```

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

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 ~2 days

Total

2

Last Release

3411d ago

Major Versions

v0.1 → v1.02017-02-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14297703?v=4)[Flc゛](/maintainers/flc1125)[@flc1125](https://github.com/flc1125)

---

Top Contributors

[![flc1125](https://avatars.githubusercontent.com/u/14297703?v=4)](https://github.com/flc1125 "flc1125 (7 commits)")

---

Tags

clijob-queuephpqueueredisphpredisqueuejobjob queueflc

### Embed Badge

![Health badge](/badges/flc-php-queue/health.svg)

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

###  Alternatives

[mjphaynes/php-resque

Redis backed library for creating background jobs and processing them later.

225200.7k2](/packages/mjphaynes-php-resque)[anorgan/qutee

Simple queue manager and task processor for PHP

711.9k1](/packages/anorgan-qutee)

PHPackages © 2026

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