reichwebconsulting/cron-expression

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

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

This package is not auto-updated.

Last update: 2024-09-29 06:08:49 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.