Download the PHP package yzh52521/thinkphp-cron without Composer
On this page you can find all versions of the php package yzh52521/thinkphp-cron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yzh52521/thinkphp-cron
More information about yzh52521/thinkphp-cron
Files in yzh52521/thinkphp-cron
Download yzh52521/thinkphp-cron
More information about yzh52521/thinkphp-cron
Files in yzh52521/thinkphp-cron
Vendor yzh52521
Package thinkphp-cron
Short Description thinkphp6 / thinkphp8 计划任务
License Apache-2.0
Package thinkphp-cron
Short Description thinkphp6 / thinkphp8 计划任务
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package thinkphp-cron
think-cron 计划任务
安装方法
使用方法
创建任务类
配置
配置文件位于 application/config/cron.php
创建计划任务
创建计划任务例子
任务监听
两种方法:
方法一 (推荐)
起一个常驻进程,可以配合supervisor使用
php think cron:schedule start --daemon
创建 supervisor
方法二
在系统的计划任务里添加
* * * * * php /path/to/think cron:run >> /dev/null 2>&1
特别鸣谢
- 使用了yunwuxin/think-cron项目中的部分代码
写在最后
- 代码中有很多不成熟的地方,期待您的issue。最好能fork,将您的想法贡献出来。让这个项目更适应更多的场景。
- 邮箱:[email protected]
All versions of thinkphp-cron with dependencies
PHP Build Version
Package Version
Requires
topthink/framework Version
>=6.0
dragonmantank/cron-expression Version ^3.0
symfony/process Version >=4.4
nesbot/carbon Version ^2.28
ext-json Version *
dragonmantank/cron-expression Version ^3.0
symfony/process Version >=4.4
nesbot/carbon Version ^2.28
ext-json Version *
The package yzh52521/thinkphp-cron contains the following files
Loading the files please wait ....