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
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
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