2017 © Pedro Peláez
 

library crontab

Create, manage or delete crontab and jobs with php.

image

softwarevamp/crontab

Create, manage or delete crontab and jobs with php.

  • Sunday, July 6, 2014
  • by softwarevamp
  • Repository
  • 0 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 46 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Crontab Component

Build Status, (*1)

SensioLabsInsight, (*2)

Crontab provide a php 5.3 lib to create crontab file., (*3)

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:, (*4)

echo $crontab->render();

And then you can delete a job you don't want anymore:, (*5)

$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., (*6)

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:, (*7)

phpunit -v

The Versions

06/07 2014

dev-master

9999999-dev

Create, manage or delete crontab and jobs with php.

  Sources   Download

MIT

The Requires

 

cron crontab cron job

14/06 2013

1.0.2

1.0.2.0

Create, manage or delete crontab and jobs with php.

  Sources   Download

MIT

The Requires

 

by Benjamin Laugueux

cron crontab cron job

29/04 2013

1.0.1

1.0.1.0

Create, manage or delete crontab and jobs with php.

  Sources   Download

MIT

The Requires

 

by Benjamin Laugueux

cron crontab cron job

29/04 2013

1.0.0

1.0.0.0

Create, manage or delete crontab and jobs with php.

  Sources   Download

The Requires

 

by Benjamin Laugueux

cron crontab cron job