Stars: 408
Forks: 70
Pull Requests: 7
Issues: 16
Watchers: 24
Last Updated: 2022-03-07 19:02:29
A PHP cron task manager for MVC-type applications
License: MIT License
Languages: PHP, Shell
This is a flexible tasks manager designed for MVC-type applications. It's used instead of standard linux crontab command.
The purpose of this tool is to provide an easy way to manipulate repetitive tasks.
Replace all tasks in crontab file with one which will invoke method TaskRunner::checkAndRunTasks()
.
Import tasks from current crontab file or add them manually. Active tasks will run one by one if current time matches with the task's time expression. Output of tasks can be handled. For each execution will be assigned status:
true
;false
or an exception was caught;Install package via Composer
composer require mult1mate/cron-manager
DbHelper
class)TaskInterface
and TaskRunInterface
or use predefined classes from the Example folderTaskRunner::checkAndRunTasks()
See also examples for ActiveRecord, CodeIgniter, Yii2, File storage