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

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

rvzhi/task
==========

基于think-queue的任务插件

1.0.1(3y ago)08PHP

Since Jan 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/youpuyewolong/rztask)[ Packagist](https://packagist.org/packages/rvzhi/task)[ RSS](/packages/rvzhi-task/feed)WikiDiscussions master Synced 1mo ago

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

任务插件使用说明

安装 composer require rvzhi/task

config目录下会新增配置文件task.php（可任意修改）

migrate建表 php think rztask:table php think migrate:run

启动任务监听 php think rztask:listen

创建任务处理类 php think rztask:create xxxxx xxxxx类似于export\_people 会把下划线自动转为驼峰

给任务处理类添加任务 Task::task\_now('ExportPeople','首次任务测试','1',\['a'=&gt;11111,'b'=&gt;2222\]); 传参分别是：处理任务的类名，任务名称，创建人，任务参数 Task::task\_later(10,'ExportPeople','延时任务测试','1',\['a'=&gt;11111,'b'=&gt;2222\]); 传参分别是：延时执行秒数，处理任务的类名，任务名称，创建人，任务参数

在配置文件service\_path下生成的类中编写任务执行逻辑

该类中param即创建任务时传的param do\_task\_handle方法 return的值 会被填在任务表的result字段

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

2

Last Release

1228d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  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)[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)[amphp/pipeline

Asynchronous iterators and operators.

7432.7M34](/packages/amphp-pipeline)

PHPackages © 2026

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