2017 © Pedro Peláez
 

library crontab

PHP standalone library to ease the generation of a crontab string

image

appyourself/crontab

PHP standalone library to ease the generation of a crontab string

  • Monday, February 19, 2018
  • by appyourself
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,391 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 27 % Grown

The README.md

Crontab

PHP standalone library to ease the generation of a crontab string, (*1)

Installation

composer require appyourself/crontab

Usage

// Example
// In a crontab.php file
require_once __DIR__ . '/vendor/autoload.php';

use Appyourself\CronTab\CronCommand as Cmd;
use Appyourself\CronTab\CronJob as Cron;
use Appyourself\CronTab\CronScheduleString as Schedule;
use Appyourself\CronTab\CronTab;

$cronTab = new CronTab();
echo $cronTab->addJob(Cron::create(Schedule::everyMinutes(5), Cmd::fromFolder('/path/to/job1', 'job1')))
             ->addJob(Cron::create(Schedule::dailyAt('12:34'), Cmd::noOutput('job2'), 'comment'))
             ->dump();

// Will produce
// */5 * * * * cd /path/to/job1 && job1
// # comment
// 34 12 * * * job2 > /dev/null 2>&1

The Versions

19/02 2018

dev-master

9999999-dev https://bitbucket.org/appyourself/crontab

PHP standalone library to ease the generation of a crontab string

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

19/02 2018

2.0.0

2.0.0.0 https://bitbucket.org/appyourself/crontab

PHP standalone library to ease the generation of a crontab string

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

16/02 2018

1.2.0

1.2.0.0 https://bitbucket.org/appyourself/crontab

PHP standalone library to ease the generation of a crontab string

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires

07/06 2017

1.1.0

1.1.0.0 https://bitbucket.org/appyourself/crontab

PHP standalone library to ease the generation of a crontab string

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires

02/06 2017

1.0.0

1.0.0.0 https://bitbucket.org/appyourself/crontab

PHP standalone library to ease the generation of a crontab string

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires