Crontab manager and CLI helper for CodeIgniter
Crontab manager and CLI helper (intended) for CodeIgniter
once
cronjobs, that run only .. once.php /path/to/ci/application/third_party/cronjob.php --ci-job-id=abc --once 'controller/method/argument'
It is intended for use within an CI application, but can easily be used otherwise. The main-file containing the manager assumes that it will be either called from within CI, or on the commandline by a cronjob; so to incorporate it in any other library you can define CRONTAB_AS_LIB
previous to including the manager, ie
define('CRONTAB_AS_LIB',TRUE);
require_once 'my/path/to/crontab.php';
/application/third_party/crontab.php
Manager and CLI bootstrap/application/libraries/Crontab.php
CI-wrap/bin/crontab.php
CLI for manager (proof of concept)