quadrogod / cron
1.0.2
2018-03-28 17:31 UTC
Requires
- php: >=5.6.0
- quadrogod/helpers: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-15 15:33:59 UTC
README
- Create your composer.json and run "composer require quadrogod\cron"
- Create your App/Cron/Task_{TaskName or Task_Name}.php files with Class Task_{TaskName or Task_Name} extends \Quadrogod\Cron\Task
- Create method action_default() OR action_{action_name}() with your logic
- Execute script in console "php cron.php --task={TaskName} --action={action_name}" OR use web browser "http(s)://site.name/cron.php?task={TaskName}", * - optional param, default use action_default() method
- All params available in task class in $_params
- Use Autoload section in your composer.json
"autoload": {
"psr-4": {
"App\\": "App/"
}
}
More info from Alex admin@tech-con.kz