Download the PHP package egorspk/yii2-scheduler without Composer
On this page you can find all versions of the php package egorspk/yii2-scheduler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-scheduler
Yii2-scheduler
Cron task scheduler module for yii2. Features:
- Task management (creation, modification, deletion);
- Manually launch tasks or run tasks on a cron schedule;
- Tracking the results of tasks;
- Ajax user interface.
Installation
The preferred way to install this extension is through composer. Either run:
or add
to the require section of your composer.json
file.
Subsequently, run
in order to create the required tables in your database.
Usage
-
Add this to your web and console configuration modules array:
- Next, add this line to your crontab file:
Where:
- /project_path/ - path to your yii2 project (for example, /var/www/yii/);
- /php_path/ php - path to php (for example, /usr/bin/php).
Settings (web config)
- defaultFolder - path to the folder, where the methods of classes that can be used as a task (default value: @app/models);
- folderDepth - depth of class methods search by defaultFolder path (defaut value: 0).
Configuration example:
Tasks (methods)
The method must return a value of type bool. True - the task succeeded.
All calls echo statement will be written in the log of the task.
User interface
The user interface is divided into 3 tabs:
- Task list;
- Add/Edit task;
- Task execution log.
Note
-
img folder is needed only for README.md;
- file scheduler.mwb - database project for the MySQL Workbench program.
License
MIT
All versions of yii2-scheduler with dependencies
kartik-v/yii2-widget-datepicker Version *
kartik-v/yii2-field-range Version *
dragonmantank/cron-expression Version ^1.2
hanneskod/classtools Version ~1.0