Download the PHP package antnavdev/recurrence without Composer
On this page you can find all versions of the php package antnavdev/recurrence. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download antnavdev/recurrence
More information about antnavdev/recurrence
Files in antnavdev/recurrence
Download antnavdev/recurrence
More information about antnavdev/recurrence
Files in antnavdev/recurrence
Vendor antnavdev
Package recurrence
Short Description Evaluate whether a recurring rule string is due on a given date.
License MIT
Package recurrence
Short Description Evaluate whether a recurring rule string is due on a given date.
License MIT
Please rate this library. Is it a good library?
Informations about the package recurrence
antnavdev/recurrence
Evaluate whether a recurring rule string is due on a given date. Pure PHP 8.2+, no framework dependencies.
Installation
Usage
For rules that require an anchor date (biweekly and interval), pass it as the second constructor argument:
Rule format
| Rule string | Meaning |
|---|---|
null |
Every day (same as daily) |
daily |
Every day |
weekly:mon,wed,fri |
Specific days of the week (lowercase 3-letter codes) |
biweekly:mon |
Every other week on that day, anchored to anchorDate |
monthly:15 |
The 15th of each month |
monthly:last |
The last day of each month |
interval:N |
Every N days from anchorDate (N < 1 is never due) |
Valid day-of-week codes: mon, tue, wed, thu, fri, sat, sun.
Exceptions
AntNavDev\Recurrence\InvalidRuleException(extends\InvalidArgumentException) — thrown when the rule string cannot be parsed (e.g.whenever:tuesday,monthly:foo).\LogicException— thrown whenisDueOn()is called with abiweeklyorintervalrule but noanchorDatewas provided.
Running tests
All versions of recurrence with dependencies
PHP Build Version
Package Version
The package antnavdev/recurrence contains the following files
Loading the files please wait ...