Skip to content
/ cron Public
forked from g4code/cron

G4 Cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser

License

Notifications You must be signed in to change notification settings

elemenx/cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cron

Cron - G4 Cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser

Install

Using Composer and Packagist

composer require g4/cron
require_once 'vendor/autoload.php';

$expression = \G4\Cron\CronExpression::factory('*/3 * * * * * *');

echo date('Y-m-d H:i:s'), ' = ', $expression->getNextRunDate()->format('Y-m-d H:i:s'), PHP_EOL;
echo date('Y-m-d H:i:s'), ' = ', $expression->getPreviousRunDate()->format('Y-m-d H:i:s'), PHP_EOL;

Development

Install dependencies

$ make install

Run tests

$ make test

License

(The MIT License) see LICENSE file for details...

About

G4 Cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 93.7%
  • Makefile 6.3%