PHPackages                             johnnylei/yii-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. [Caching](/categories/caching)
4. /
5. johnnylei/yii-redis-queue

ActiveYii2-extension[Caching](/categories/caching)

johnnylei/yii-redis-queue
=========================

Yii2 redis queue based on pub/sub

1.1.5(8y ago)85656MITPHPPHP &gt;=5.4.0

Since Apr 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/johnnylei/redis-queue)[ Packagist](https://packagist.org/packages/johnnylei/yii-redis-queue)[ Docs](https://github.com/johnnylei/redis-queue.git)[ RSS](/packages/johnnylei-yii-redis-queue/feed)WikiDiscussions master Synced today

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

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

[](#yii2-redis-queue)

基于yii2通过redis的订阅／发布者模式实现的消息队列

install
=======

[](#install)

- 安装phpredis扩展
- 安装代码

```
composer require --prefer-dist johnnylei/yii-redis-queue
```

usage
=====

[](#usage)

- 配置文件

```
'redis_queue'=>[
    'class'=>'johnnylei\redis_queue\RedisQueue',
],
```

- 使用

```
//　前台发送
Yii::$app->redis_queue->publish('test', 'xxxxxxxxxxxxxxx');

// console里面监听，并且处理，设置监听不超时
ini_set('default_socket_timeout', -1);
Yii::$app->redis_queue->subscribe('test', function($instance, $channelName, $message) {
    var_dump($message);
});
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~3 days

Total

7

Last Release

3281d ago

### Community

Maintainers

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

---

Top Contributors

[![Johnny539](https://avatars.githubusercontent.com/u/237241768?v=4)](https://github.com/Johnny539 "Johnny539 (11 commits)")[![jinpy666](https://avatars.githubusercontent.com/u/5868671?v=4)](https://github.com/jinpy666 "jinpy666 (1 commits)")

---

Tags

redisqueueyii2

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/johnnylei-yii-redis-queue/health.svg)](https://phpackages.com/packages/johnnylei-yii-redis-queue)
```

###  Alternatives

[bazilio/yii2-async

Provides translucent api for moving large tasks out of request context

6248.8k2](/packages/bazilio-yii2-async)

PHPackages © 2026

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