PHPackages                             mawenpei/swoole-crontab - 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. mawenpei/swoole-crontab

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

mawenpei/swoole-crontab
=======================

A PHP Crontab

22138PHP

Since Mar 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mawenpei/swoole-crontab)[ Packagist](https://packagist.org/packages/mawenpei/swoole-crontab)[ RSS](/packages/mawenpei-swoole-crontab/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Swoole-Crontab(基于Swoole扩展)
==========================

[](#swoole-crontab基于swoole扩展)

1.概述
----

[](#1概述)

- 基于swoole的定时器程序，支持秒级处理.
- 异步多进程处理。
- 完全兼容crontab语法，且支持秒的配置,可使用数组规定好精确操作时间
- 请使用swoole扩展1.7.9-stable及以上版本.[Swoole](https://github.com/swoole/swoole-src)
- 支持worker处理beanstalk队列任务

2.Crontab配置的支持
--------------

[](#2crontab配置的支持)

具体配置文件请看 \[src/console.config.php\] 介绍一下时间配置

```
0   1   2   3   4   5
|   |   |   |   |   |
|   |   |   |   |   +------ day of week (0 - 6) (Sunday=0)
|   |   |   |   +------ month (1 - 12)
|   |   |   +-------- day of month (1 - 31)
|   |   +---------- hour (0 - 23)
|   +------------ min (0 - 59)
+-------------- sec (0-59)[可省略，如果没有0位,则最小时间粒度是分钟]

```

3.帮助信息
------

[](#3帮助信息)

```
* Usage: /path/to/php console.php [options] -- [args...]

* -h [--help]        显示帮助信息
* -s start           启动进程
* -s stop            停止进程
* -s restart         重启进程

```

4.运行配置
------

[](#4运行配置)

define('PHPKIT\_RUN\_DEBUG',true); 开启调试模式,将通过syslog函数打印运行日志

define('PHPKIT\_CONSOLE\_CONFIG\_PATH',realpath('config.php')); 定义配置文件路径,未定义则不能运行

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![mawenpei](https://avatars.githubusercontent.com/u/16497196?v=4)](https://github.com/mawenpei "mawenpei (7 commits)")

### Embed Badge

![Health badge](/badges/mawenpei-swoole-crontab/health.svg)

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

###  Alternatives

[tempusdominus/bootstrap-4

A date/time picker component designed to work with Bootstrap 4 and Momentjs.

6079.3k](/packages/tempusdominus-bootstrap-4)[kaystrobach/development-tools

121.9k](/packages/kaystrobach-development-tools)[sheadawson/silverstripe-responsive-wysiwyg-images

Extends silverstripe-responsive-images to allow responsive images in WYSIWYG editor.

111.6k](/packages/sheadawson-silverstripe-responsive-wysiwyg-images)

PHPackages © 2026

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