PHPackages                             ruesin/delay-server-single - 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. ruesin/delay-server-single

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

ruesin/delay-server-single
==========================

Single Delay-Queue-Server

v1.1.0(7y ago)02Apache-2.0PHPPHP &gt;=7.0

Since Dec 25Pushed 7y ago2 watchersCompare

[ Source](https://github.com/timerqueue/server-single)[ Packagist](https://packagist.org/packages/ruesin/delay-server-single)[ RSS](/packages/ruesin-delay-server-single/feed)WikiDiscussions master Synced 2mo ago

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

delay-server-single
===================

[](#delay-server-single)

基于 Redis 实现的延时队列，只提供简单的延时能力，不负责业务相关队列，需要在创建队列时提供业务队列的连接信息，消息到期时自动将消息移动到业务队列。

建议使用[delay-server](https://github.com/ruesin/delay-server)，已经做了对此服务的兼容。

依赖
--

[](#依赖)

- Redis &gt; 3.2
- PHP &gt; 7.0
- [Swoole Extension](http://pecl.php.net/package/swoole) &gt; 1.9.5
- [predis](https://github.com/nrk/predis) 1.1.1
- [swover](https://github.com/ruesin/swover) &gt; 1.0.0

安装
--

[](#安装)

```
$ composer create-project --prefer-dist ruesin/delay-server-single

```

配置
--

[](#配置)

拷贝`./config/samples/*.php`到`./config/`，并按需修改：

- `queue.php` 队列定义
- `redis.php` Redis服务器配置
- `secrets.php` 验证签名的密钥对
- `server.php` 服务启动的配置文件，参考[swover](https://github.com/ruesin/swover)

使用
--

[](#使用)

- Process 服务

    持续检查到期消息，将到期消息从延迟队列移动到活跃的业务队列。

```
$ php server.php process [start|stop|reload|restart]

```

- Sockets 服务

    接收客户端请求，实现创建队列、删除队列、发送延时消息。可以使用`http`或`tcp`启动相应的swoole服务。

```
$ php server.php [http|tcp] [start|stop|reload|restart]

```

也可以选择使用 nginx + php-fpm，将网站目录指向`./public/`即可。

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2689d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

delay-queue

### Embed Badge

![Health badge](/badges/ruesin-delay-server-single/health.svg)

```
[![Health](https://phpackages.com/badges/ruesin-delay-server-single/health.svg)](https://phpackages.com/packages/ruesin-delay-server-single)
```

###  Alternatives

[nahid/talk

Talk is a Laravel based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.

1.6k58.1k4](/packages/nahid-talk)[servocoder/lumen-horizon

Commands and code-driven configuration for Lumen queues.

2679.4k](/packages/servocoder-lumen-horizon)[heureka/php-rq

Several simple and reliable queues based on Redis

2829.8k](/packages/heureka-php-rq)[carsguide/lumen-horizon

Commands and code-driven configuration for Lumen queues.

1050.6k](/packages/carsguide-lumen-horizon)[haozu/delay-queue

Delay queue based on redis

123.4k](/packages/haozu-delay-queue)[not-empty/taurus-publisher-php-lib

PHP library using LUA script to send for redis a job for Taurus queue

131.9k](/packages/not-empty-taurus-publisher-php-lib)

PHPackages © 2026

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