Migrate dragonmantank/cron-expression to TypeScript

B Production-ready · version 3.6.0

dragonmantank/cron-expression 3.6.0 is a PHP package released under the MIT license and requires PHP ^8.2|^8.3|^8.4|^8.5. Pext migrates it to TypeScript; on Node.js, 160 of 171 PHPUnit tests pass (93.5%), with 11 failures, no errors and 4 skipped. It has no tracked dependencies, and 2 tracked packages depend on it.

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

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

93.5% of 171 tests passing (160 passed, 11 failed, 0 errors, 4 skipped). Verified 2026-10-21.

Where tests fail

The test class with the most failing tests on Node.js:

Test classFailing tests
CronExpressionTest11

What “Production-ready” means

Passes at least 80% of its original tests and behaves like the PHP original on the paths that matter. Remaining gaps are tracked.

Requirements

PHP
^8.2|^8.3|^8.4|^8.5
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

Upstream

Version
3.6.0
License
MIT
Keywords
cron, schedule

Migrating a codebase that uses dragonmantank/cron-expression?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.