PHPackages                             wxlmd/mdtask - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wxlmd/mdtask

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wxlmd/mdtask
============

15(3y ago)025PHP

Since Jan 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/youpuyewolong/mdtask)[ Packagist](https://packagist.org/packages/wxlmd/mdtask)[ RSS](/packages/wxlmd-mdtask/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (15)Used By (0)

任务插件使用说明

安装 composer require wxlmd/mdtask

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

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

启动任务监听 php think mdtask:listen

创建任务处理类 php think mdtask: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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

14

Last Release

1276d ago

### Community

Maintainers

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

---

Top Contributors

[![youpuyewolong](https://avatars.githubusercontent.com/u/26267750?v=4)](https://github.com/youpuyewolong "youpuyewolong (1 commits)")

### Embed Badge

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

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

###  Alternatives

[zoujingli/think-library

Core library and common services for ThinkAdmin

8373.4k19](/packages/zoujingli-think-library)[thinkcmf/cmf-swoole

Swoole extend for ThinkCMF5.1

371.8k](/packages/thinkcmf-cmf-swoole)

PHPackages © 2026

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