PHPackages                             doer/task - 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. doer/task

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

doer/task
=========

多进程异步作业库

0.0.1(5y ago)12PHPPHP &gt;=7.1

Since Sep 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/doer/task)[ Packagist](https://packagist.org/packages/doer/task)[ RSS](/packages/doer-task/feed)WikiDiscussions master Synced 6d ago

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

🚄 Task 异步多进程作业调度
================

[](#-task-异步多进程作业调度)

请留意，该服务只支持 Linux 环境。

异步任务作业调度框架，提供异步任务/延时异步任务调度，支队多种类型消息（IPC/Redis/MQ），动态进程池等能力。

该服务用于平滑解决大多业务同步处理时间过长导致服务处理超时，接口等待时间过长（HTTP 连接长时间占用）等问题。使用原生 PHP 编写，默认使用 IPC 进行进程通信，拥有详细运行日志，极少外部依赖，便于部署与维护。其中延时异步任务也可以有效的处理需要依赖第三方服务结果（例如支付、授权）等场景，不需要依赖外部消息队列等服务，纯天然，无公害🐕。

功能特性路线
------

[](#功能特性路线)

- 😀可扩展多种类消息支持（IPC、Socket、MQ...）
- 😀可扩展任务调度机制
- 😀动态 Worker 进程池
- 😀延时任务支持
- 😔HTTP/TCP 服务支持
- 😔分布式任务调度，横向扩充调度节点
- 😔web 管理控制台

快速启动
----

[](#快速启动)

启动调度服务

```
php examples/start.php start
```

产生任务（投递任务）

```
php examples/producer.php
```

**运行结果：** 任务会在 `tests` 目录下创建 `delay_task` 和 `normal_task` 两个文件，里面的内容即为上方投递任务运行结果。

贡献代码
----

[](#贡献代码)

直接 fork 然后 PR 即可。

流程图
---

[](#流程图)

先看源码，晚点补充。

其它
--

[](#其它)

感谢 @博武 大佬，感谢 CCTV！

注：我在代码中藏了一个 BUG 清留意哈！

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

2064d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bf04623823ce7d320e818c832994b0008156ee649760c08ab5e2d6e56f4d733?d=identicon)[Anoxia](/maintainers/Anoxia)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[webfactory/icu-translation-bundle

Enables ICU message formatting for translations in Symfony applications.

2761.8k](/packages/webfactory-icu-translation-bundle)[amphp/cluster

Building multi-core network applications with PHP.

6224.8k1](/packages/amphp-cluster)[workerman/rabbitmq

Asynchronous rabbitmq client for PHP based on workerman.

4313.4k6](/packages/workerman-rabbitmq)

PHPackages © 2026

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