File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111- Lightweight Cron expression parser library for PHP.
1212- Very fast because it bails early in case a segment doesnt match.
1313
14+
1415## Installation
16+
1517``` bash
1618composer require adhocore/cron-expr
1719```
1820
21+
1922## Usage
23+
2024``` php
2125use Ahc\Cron\Expression;
2226
@@ -31,10 +35,11 @@ $expr->isCronDue('*/1 * * * *', time());
3135```
3236
3337### Real Abbreviations
34- You can use real abbreviations for month and week days. eg: ` JAN ` , ` dec ` , ` fri ` , ` SUN `
3538
39+ You can use real abbreviations for month and week days. eg: ` JAN ` , ` dec ` , ` fri ` , ` SUN `
3640
3741### Tags
42+
3843Following tags are available and they are converted to real cron expressions before parsing:
3944
4045- * @yearly * or * @annually * - every year
@@ -49,6 +54,7 @@ Following tags are available and they are converted to real cron expressions bef
4954- * @always * - every minute
5055
5156### Modifiers
57+
5258Following modifiers supported
5359
5460- * Day of Month / 3rd segment:*
You can’t perform that action at this time.
0 commit comments