Registry / utility / dragonmantank-cron-expression

dragonmantank-cron-expression

JSON →
library3.6.0phppackagistunverified

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

composer require dragonmantank/cron-expression
INSTALL
IMPORT
SIG · DRAGONMANTANK-CRON
D
dragonmantank-cron-expression
utilityphpv3.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CronExpression
use Cron\CronExpression;

Create a cron expression and get the next run date.

use Cron\CronExpression; $cron = new CronExpression('@daily'); echo $cron->getNextRunDate()->format('Y-m-d H:i:s');
Debug
Known issues
breakingPHP version requirement: requires PHP 7.4+
fix
Upgrade to PHP 7.4 or later.
affects: <3.0.0
Upgrade
Version history
3.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
dragonmantank-cron-expression — pip install dragonmantank-cron-expression · libregistry