Download the PHP package softwarevamp/crontab without Composer
On this page you can find all versions of the php package softwarevamp/crontab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download softwarevamp/crontab
More information about softwarevamp/crontab
Files in softwarevamp/crontab
Download softwarevamp/crontab
More information about softwarevamp/crontab
Files in softwarevamp/crontab
Vendor softwarevamp
Package crontab
Short Description Create, manage or delete crontab and jobs with php.
License MIT
Package crontab
Short Description Create, manage or delete crontab and jobs with php.
License MIT
Please rate this library. Is it a good library?
Informations about the package crontab
Crontab Component
Crontab provide a php 5.3 lib to create crontab file.
use Crontab\Crontab;
use Crontab\Job;
$job = new Job();
$job
->setMinute('*/5')
->setHour('*')
->setDayOfMonth('*')
->setMonth('1,6')
->setDayOfWeek('*')
->setCommand('myAmazingCommandToRunPeriodically')
;
$crontab = new Crontab();
$crontab->addJob($job);
$crontab->write();
You can render what you have created:
echo $crontab->render();
And then you can delete a job you don't want anymore:
$crontab->removeJob($theJobYouWantToDelete);
When you create a Crontab, it will automatically parse your current crontab file and add all present job into your new object.
Resources
You can run the unit tests with the following command. You need to be in the crontab directory and have phpunit installed on your computer:
phpunit -v
All versions of crontab with dependencies
PHP Build Version
Package Version
The package softwarevamp/crontab contains the following files
Loading the files please wait ....