Skip to content

Instantly share code, notes, and snippets.

@cardil cardil/gist:2355211
Created Apr 10, 2012

Embed
What would you like to do?
CrontabManager simple example
<?php
use php\manager\crontab\CrontabManager;
$crontab = new CrontabManager();
$job = $crontab->newJob();
$job->on('* * * * *');
$job->onMinute('20-30')->doJob("echo foo;");
$crontab->add($job);
$job->onMinute('35-40')->doJob("echo bar;");
$crontab->add($job);
$crontab->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.