2017 © Pedro Peláez
 

library cron

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required.

image

hybridlogic/cron

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required.

  • Saturday, January 12, 2013
  • by Dachande663
  • Repository
  • 3 Watchers
  • 6 Stars
  • 148 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 21 % Grown

The README.md

PHP Crontab

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required., (*1)

0.0 Table of Contents

1.0 Introduction 2.0 Examples 3.0 Running Tests 4.0 Troubleshooting 5.0 Changelog, (*2)

1.0 Introduction

PHP Crontab provides a simple way to register multiple PHP jobs to execute at certain times. Simply set up a regular crontab to hit the script and add as many jobs as you need to., (*3)

PHP Crontab supports (almost) the entire crontab expression format syntax. Each Job can have multiple expressions and trigger multiple callbacks., (*4)

Cron expression format:, (*5)


minute | hour | day of month | month | day of week | year (optional), (*6)

Field formats:, (*7)

  • = All values / = Range increment , = List values
  • = Range

Currently only the L keyword is supported for Day of month, to identify the last day of the month. W, # and L (for day of week) are currently NOT supported., (*8)

2.0 Examples

$crontab = new \HybridLogic\Cron\Crontab;

$crontab->add_job(
    \HybridLogic\Cron\Job::factory('test')
        ->on('* * * * *')
        ->trigger(function(){
            echo "test run\n";
        })
    );

$count = $crontab->run();
echo "Executed $count job(s)";

3.0 Running Tests

phpunit tests, (*9)

4.0 Troubleshooting

Nothing here yet., (*10)

5.0 Changelog

[2012-12-14] Initial Version, (*11)

The Versions

12/01 2013

dev-master

9999999-dev https://github.com/Dachande663/PHP-Cron

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

events queue worker schedule cron crontab

12/01 2013

v1.0.3

1.0.3.0 https://github.com/Dachande663/PHP-Cron

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

events queue worker schedule cron crontab

12/01 2013

v1.0.2

1.0.2.0 https://github.com/Dachande663/PHP-Cron

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

events queue worker schedule cron crontab

12/01 2013

v1.0.1

1.0.1.0 https://github.com/Dachande663/PHP-DB-QueryBuilder

PHP Crontab is a crontab written in pure PHP with support for parsing standard cron expressions. No shell access required.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

events queue worker schedule cron crontab

02/01 2013

v1.0.0

1.0.0.0

A crontab written in pure PHP, no shell access required

  Sources   Download

The Requires

  • php >=5.3.0

 

events schedule cron crontab