PHPackages                             sixmq/sixmq - 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. sixmq/sixmq

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

sixmq/sixmq
===========

SixMQ 是基于 IMI 框架 (PHP + Swoole) 开发的 PHP 消息队列

v1.0.1(6y ago)841Apache-2.0PHPPHP &gt;=7.0.0

Since Aug 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SixMQ/SixMQ)[ Packagist](https://packagist.org/packages/sixmq/sixmq)[ RSS](/packages/sixmq-sixmq/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

SixMQ
=====

[](#sixmq)

[![Latest Version](https://camo.githubusercontent.com/26286110bbf913ac954c73cf789dc0f62aa596ee8f5a2d0ac5c2bd94aa24282f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369786d712f7369786d712e737667)](https://packagist.org/packages/sixmq/sixmq)[![Php Version](https://camo.githubusercontent.com/315f5c30e505b9ccc4178451bbd34c2ba5d281d1fa3267304053ed19ab634125/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e312d627269676874677265656e2e737667)](https://secure.php.net/)[![Swoole Version](https://camo.githubusercontent.com/d694ccd6a051c135f0bc3dca525ddc475544dab5ce08f7b06506eb8be02fcacb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776f6f6c652d2533453d342e332e302d627269676874677265656e2e737667)](https://github.com/swoole/swoole-src)[![IMI License](https://camo.githubusercontent.com/5ef5e905e4e66c326f71c6bd4389b59db1ad177aa877878ed3102e261eb1af19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f5369784d512f5369784d512e737667)](https://github.com/SixMQ/SixMQ/blob/master/LICENSE)

介绍
--

[](#介绍)

SixMQ 是一款 PHP 消息队列系统，基于 [imi](https://www.imiphp.com/) 框架开发的，运行在 PHP + Swoole 环境下。

SixMQ 消息存储及队列完全依赖 Redis 实现，代码完全可以由 PHP 开发者阅读和修改。

QQ群：17916227 [![点击加群](https://camo.githubusercontent.com/75b53e353bb9e5064662e185a6d39f4bb88c4e45bd3a1240ddf599525edb6afa/68747470733a2f2f7075622e69647171696d672e636f6d2f7770612f696d616765732f67726f75702e706e67 "点击加群")](https://jq.qq.com/?_wv=1027&k=5wXf4Zq)，如有问题会有人解答和修复。

特性
--

[](#特性)

- 持久化存储
- 消息确认
- 消息延迟
- 消息分组
- 消息自动清理机制
- 客户端跨语言
- 图形化管理界面

### 持久化存储

[](#持久化存储)

依靠 Redis 的持久化存储机制，将消息持久化存储下来。

### 消息确认

[](#消息确认)

消息不是从队列出掉就好了，消费端处理完消息后，需要告知服务端这个消息已经消费完成。超过超时时间后，没有回传确认，该消息会再次进入队列被其它消费端消费。

```
$queue->complete($messageId, $success, $data);
```

### 消息延迟

[](#消息延迟)

有些消息，你希望他在未来某个指定的时间才会被消费，这个功能 SixMQ 轻松帮你实现了。

```
$delay = 60; // 60 秒后被消费
$queue->pushDelay($data, $delay);
```

### 消息分组

[](#消息分组)

使用 SixMQ 你可以针对消息进行分组，在同一个分组中的消息，SixMQ 会保证他们依次执行。只有在前一个消息被消费完成，后一个消息才会开始被消费。

### 消息自动清理机制

[](#消息自动清理机制)

当消息被消费后，如果消息长期储存，势必会占用很多存储空间。要知道，大部分消息被成功消费后，基本便是无用了。

SixMQ 支持两种消息自动清理机制：

- 成功立即清理
- 成功后延迟清理

立即清理很好理解，延迟清理可以将成功消费的消息，延迟保留一定时间，然后才会被释放。

### 客户端跨语言

[](#客户端跨语言)

SixMQ 使用 TCP 协议通讯，所以跨语言跨平台通讯完全不成问题。

目前提供有如下客户端：

[PHP Client](https://github.com/SixMQ/SixMQ-Client)

### 图形化管理界面

[](#图形化管理界面)

SixMQ 提供图形化管理界面：

文档及示例
-----

[](#文档及示例)

[文档传送门](https://github.com/SixMQ/SixMQ-Client/blob/master/doc/README.md)

[示例传送门](https://github.com/SixMQ/SixMQ-Client/tree/master/examples)

运行环境
----

[](#运行环境)

- Linux 系统 (Swoole 不支持在 Windows 上运行)
- [PHP](https://php.net/) &gt;= 7.1
- [Composer](https://getcomposer.org/)
- [Swoole](https://www.swoole.com/) &gt;= 4.3.0
- Redis 扩展

版权信息
----

[](#版权信息)

SixMQ 遵循 Apache2 开源协议发布，并提供免费使用。

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

4

Last Release

2424d ago

Major Versions

v0.1 → v1.0.02019-06-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f917bb42280d114c53cebadc2942a13ee03abe14971089f88895e266d637169?d=identicon)[Yurunsoft](/maintainers/Yurunsoft)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sixmq-sixmq/health.svg)

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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