reichwebconsulting/cron-expression

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

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 337

pkg:composer/reichwebconsulting/cron-expression

v2.2.3 2018-06-19 01:07 UTC

This package is not auto-updated.

Last update: 2025-09-28 11:08:58 UTC


README

This is a fork of dragonmantank/cron-expression. Feel free to use this fork though I don't plan to support it. This exists because the base library is awesome, but aims for compatibility with "standard" CRON expression syntax over functionality.

** Why This Fork Exists **

I was working on billing processor for a customer that invoices their customers twice a month (15th and the "last day", whtever that is). While cron-expression supports "L" as a placeholder for "last day", and supports multiple comma-separated values in each part o the schedule, it does not support both at the same time.

The repo's creator said this is intentional to maintain compatibility with other CRON schedules. I don't care about this. I need the feature.

If you do too, feel free to pull this repo. But if you want support, please use the original.