PHPackages                             jiaozi/redis-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. jiaozi/redis-queue

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

jiaozi/redis-queue
==================

v1.1.0(7y ago)014PHPPHP &gt;=5.6

Since Jul 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gaohuia/redis-queue)[ Packagist](https://packagist.org/packages/jiaozi/redis-queue)[ RSS](/packages/jiaozi-redis-queue/feed)WikiDiscussions master Synced 3d ago

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

redis-queue
===========

[](#redis-queue)

一个Redis queue工具, 封装常用的队列相关操作, 简化队列的使用.

### 特性(FEATURES)

[](#特性features)

- 封装数据的序列化与反序列化
- 封装信号量处理, 便于代码更新时平滑重启
- 重试机制

### 代码

[](#代码)

守护进程端

```
$redis = new Redis();
$redis->connect("127.0.0.1", 6379, 30);
$redis->auth("xxx");

$queue = new RedisQueue($redis, "testQueue");
$queue->consume(function($data){
    var_dump($data);
});
```

以上代码中, consume调用平时不会退出, 除非有信号量进入. 有消息进入时, 回调函数将被自动调用.

投递一个消息.

```

$redis = new Redis();
$redis->connect("127.0.0.1", 6379, 30);
$redis->auth("xxx");

$queue = new RedisQueue($redis, "testQueue");
$queue->publish("hello");

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2739d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a75ac5e54a7a6601f8b5dc10e5a7f1ab6ff935070b207a3a4755b515ef119c6?d=identicon)[gaohuia](/maintainers/gaohuia)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jiaozi-redis-queue/health.svg)

```
[![Health](https://phpackages.com/badges/jiaozi-redis-queue/health.svg)](https://phpackages.com/packages/jiaozi-redis-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)[amphp/cluster

Building multi-core network applications with PHP.

6224.8k1](/packages/amphp-cluster)

PHPackages © 2026

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