semsty / crontab
There is no license information available for the latest version (dev-master) of this package.
yii2 crontab
dev-master
2018-08-16 13:20 UTC
Requires
- php: >=7.2.0
- yii2tech/crontab: ^1.0@dev
- yiisoft/yii2: ~2.0.15
Requires (Dev)
- phpunit/phpunit: ~7.1.0
This package is not auto-updated.
Last update: 2026-02-21 18:15:37 UTC
README
Yii2 crontab
add to components
...
'schedule' => [
'class' => \semsty\crontab\Component::class,
'init' => [
'example' => [
'* * * * *',
'echo Hello >> /tmp/world'
]
]
]
...
Usage
./yii schedule/add example '* * * * *' 'echo Hello >> /tmp/world'
Yii::$app->schedule->add('example', '* * * * *', 'echo Hello >> /tmp/world')
crontab will update once a minute