PHP-TASK is a cron tool manage cron job without editing cron file
- PHP 5.6+
- install php-redis
composer install github.com/xiaoshouchen/php-taskinit_redis($host,$port,$password)you need implement baseScript
<?php
namespace xiaoshouchen\src;
class TestScript extends \BaseScript
{
protected function action(): bool
{
echo 'test';
return true;
}
}