Download the PHP package rossmann-it/yii2-cron without Composer
On this page you can find all versions of the php package rossmann-it/yii2-cron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rossmann-it/yii2-cron
More information about rossmann-it/yii2-cron
Files in rossmann-it/yii2-cron
Package yii2-cron
Short Description Flexible cron tasks manager for the Yii2 Framework
License MIT
Homepage https://github.com/Rossmann-IT/yii2-cron
Informations about the package yii2-cron
PHP Cron tasks manager
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.
Live Demo of original project by multimate
How this works
Replace all tasks in crontab file with one which will invoke method .
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:
- Success if method returned ;
- Error if method returned or an exception was caught;
- Started if task is running or wasn't ended properly.
Features
- Works with any storage engines
- Flexible implementation with interfaces
- Disable, enable and run tasks through tool interface
- Handle tasks output however you want
- Time expression helper shows next run dates
- Monitor runs results
- Export and import tasks from crontab
- Add needed method for new task from dropdown
Installation
Install package via Composer
Requirements
- PHP 5.4 or above
- mtdowling/cron-expression
Configure
- Create tables if you want to store data in database (use Yii migration)
- Implement
TaskInterface
andTaskRunInterface
or use predefined classes from the Example folder - Copy and modify controller and views. Or create your own.
- Import tasks through interface or add them manually
- Add new line into crontab file that will invoke
- Disable tasks that will be invoked through the manager
- Make sure that manager is not publicly available
Screenshots
All versions of yii2-cron with dependencies
yiisoft/yii2 Version ^2.0.6
yiisoft/yii2-bootstrap Version ^2.0.5
mtdowling/cron-expression Version ^1.1