library crontab-manager
a lib to control the crontab file
troy/crontab-manager
a lib to control the crontab file
- Friday, May 16, 2014
- by troyFan
- Repository
- 1 Watchers
- 0 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
crontab-manager
Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require troy/crontab-manager "*"
or add, (*3)
"troy/crontab-manager": "*"
to the require section of your composer.json file., (*4)
usage:
1.simple example:, (*5)
use troy\CrontabManager\Crontab;
$crontab = new Crontab(array(
'command'=>'command script',
.....
));
$cm = new troy\CrontabManager\CrontabFileManager('');
$cm->append($crontab);
$cm->remove($crontab);
$newCrontab = new Crontab(array(
'command'=>'command script 2'
));
$cm->update($crontab,$newCrontab);
dev-master
9999999-dev
a lib to control the crontab file
Sources
Download
The Requires
by
troyFan