PHP code example of creatcode / crontab-task
1. Go to this page and download the library: Download creatcode/crontab-task 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/ */
creatcode / crontab-task example snippets
use Creatcode\Crontask\Client;
$param = [
'method' => 'index',
'args' => ['limit' => 10, 'page' => 1]
];
$client = Client::instance()->request($param);
php think crontask [start/stop...]
--debug 可用于调试打印
参数:id, param(要更新的数据数组)