Calculate the next or previous run date and determine if a CRON expression is due. The PHP cron expression parser can parse a CRON expression, determine if it is due to run, calculate the next run date of the expression, and calculate the previous run date of the expression. You can calculate dates far into the future or past by skipping n number of matching dates. The parser can handle increments of ranges (e.g. */12, 2-59/3), intervals (e.g. 0-9), lists (e.g. 1,2,3), W to find the nearest weekday for a given day of the month, L to find the last day of the month, L to find the last given weekday of a month, and hash (#) to find the nth weekday of a given month. You can determine whether or not the promotion should be running, buyers can see when the promotion last ran, determine if the promotion will run on a specific date, and they can plan out their buying strategies based on when the promotion will run next.

Features

  • Parse a CRON expression, determine if it is due to run, and calculate the next run date of the expression
  • Calculate the previous run date of the expression
  • You can calculate dates far into the future or past by skipping n number of matching dates
  • The parser can handle increments of ranges and intervals
  • Install it with composer, or simply download the phar file and include it in your scripts
  • Cron utilizes cron expressions for representing recurring schedules

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow PHP Cron Expression Parser

PHP Cron Expression Parser Web Site

Other Useful Business Software
Vibes don’t ship, Retool does Icon
Vibes don’t ship, Retool does

Start from a prompt and build production-ready apps on your data—with security, permissions, and compliance built in.

Vibe coding tools create cool demos, but Retool helps you build software your company can actually use. Generate internal apps that connect directly to your data—deployed in your cloud with enterprise security from day one. Build dashboards, admin panels, and workflows with granular permissions already in place. Stop prototyping and ship on a platform that actually passes security review.
Build apps that ship
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PHP Cron Expression Parser!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Cron and Job Scheduler Software

Registered

2021-11-09