cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

MIT License

Downloads
76.5M
Stars
4.9K
Committers
40

Bot releases are hidden (Show)

cron-expression - 1.2.0 Latest Release

Published by dragonmantank over 7 years ago

Added

  • Added IDE, CodeSniffer, and StyleCI.IO support

Changed

  • Switched to PSR-4 Autoloading

Fixed

  • 0 step expressions are handled better
  • Fixed DayOfMonth validation to be more strict
  • Typos
cron-expression - 1.1.0

Published by dragonmantank over 7 years ago

Added

  • Support for non-hourly offset timezones
  • Checks for valid expressions

Changed

  • Max Iterations no longer hardcoded for getRunDate()
  • Supports DateTimeImmutable for newer PHP verions

Fixed

  • Fixed looping bug for PHP 7 when determining the last specified weekday of a month
cron-expression - 1.0.4

Published by mtdowling almost 10 years ago

  • Avoid infinity loop & division by zero #67
  • Fix getRunDate() shouldn't modify currentTime parameter #57
  • Missing anchors in regexp #63
  • Avoid annotation parsing by Doctrine #62
  • Optimization #52
  • Fixed #20 Weekday-Hash for Saturday and Sunday doesn't seem to work #53
  • Different timezone support #48
  • Fixed regexp for day of week #49
  • Set $currentTime as 'now' #36
  • Allowing multiple values for day of week field.
cron-expression - 1.0.3

Published by mtdowling almost 11 years ago

  • Only set default timezone if the given $currentTime is not a DateTime instance (#34)
  • Fixes issue #28 where PHP increments of ranges were failing due to PHP casting hyphens to 0
  • Now supports expressions with any number of extra spaces, tabs, or newlines
  • Using static instead of self in CronExpression::factory