2017 © Pedro Peláez
 

library cron-expr-parser

Parse cron expressions and match them against time.

image

yalesov/cron-expr-parser

Parse cron expressions and match them against time.

  • Wednesday, July 6, 2016
  • by yalesov
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,035 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 11 Versions
  • 4 % Grown

The README.md

Yalesov\CronExprParser

Build Status, (*1)

Parse cron expressions and match them against time., (*2)

Installation

Composer:, (*3)

{
  "require": {
    "yalesov/cron-expr-parser": "2.*"
  }
}

Usage

Parse a Cron expression and a time, and determine if the given time falls within the given cron expression., (*4)

use Yalesov\CronExprParser\Parser;
$match    = Parse::matchTime('next Thursday', '* * * * 4');
$notMatch = Parse::matchTime('next Friday', '* * * * 4');

Function signature:, (*5)

public static function matchTime($time, $expr)

$time is either a timestamp, or a strtotime-compatible string., (*6)

$expr is any valid cron expression, in addition supporting: - range: 0-5 - range + interval: 10-59/5 - comma-separated combinations of these: 1,4,7,10-20 - English months: january - English months (abbreviated to three letters): jan - English weekdays: monday - English weekdays (abbreviated to three letters): mon - These text counterparts can be used in all places where their numerical counterparts are allowed, e.g. jan-jun/2 - A full example: 0-5,10-59/5 * 2-10,15-25 january-june/2 mon-fri (every minute between minute 0-5 + every 5th minute between 10-59; every hour; every day between day 2-10 and day 15-25; every 2nd month between January-June; Monday-Friday), (*7)

The Versions

06/07 2016

dev-master

9999999-dev https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

cron

06/07 2016

v2.0.5

2.0.5.0 https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

cron

05/07 2016

v2.0.4

2.0.4.0 https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

cron

05/07 2016

v2.0.3

2.0.3.0 https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

The Development Requires

by Yulij Andreevich Lesov

cron

05/07 2016

v2.0.2

2.0.2.0 https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

cron

05/07 2016

v2.0.1

2.0.1.0 https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

cron

05/07 2016

v2.0.0

2.0.0.0 https://github.com/yalesov/php-cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

cron

03/10 2012

1.0.2

1.0.2.0 https://github.com/heartsentwined/cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

cron

28/09 2012

1.0.1

1.0.1.0 https://github.com/heartsentwined/cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

cron

19/09 2012

1.0.0

1.0.0.0 https://github.com/heartsentwined/cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

cron

19/09 2012

0.1.0

0.1.0.0 https://github.com/heartsentwined/cron-expr-parser

Parse cron expressions and match them against time.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

cron