alxmsl / cronmanager
Cron manager for PHP
v1.0.2
2014-08-12 13:41 UTC
This package is not auto-updated.
Last update: 2024-11-19 08:21:30 UTC
README
use alxmsl\CronManager\CrontabCommand;
use alxmsl\CronManager\CronManager;
$NewCommand = new CrontabCommand();
$NewCommand->unserialize('23 */2 * * * echo "Running at 0:23, 2:23, 4:23 etc."');
$NewCommand->setEnvironment('/usr/bin/env REVISION=4');
$Manager = CronManager::getInstance(`whoami`);
$Manager->addCommands([$NewCommand]);
$Manager->update();
License
Copyright © 2014 Alexey Maslov alexey.y.maslov@gmail.com This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.