PHP code example of yzh52521 / swoole-crontab
1. Go to this page and download the library: Download yzh52521/swoole-crontab library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yzh52521 / swoole-crontab example snippets
sh
php Crontab start #调试模式
php Crontab start -d #常驻内存模式
php Crontab stop #关闭常驻内存服务