PHPackages                             elemenx/cron - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. elemenx/cron

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

elemenx/cron
============

g4 cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser

0.1.5(2y ago)01.6k↓10.4%MITPHPPHP ^7.2.5

Since Aug 1Pushed 2y agoCompare

[ Source](https://github.com/elemenx/cron)[ Packagist](https://packagist.org/packages/elemenx/cron)[ RSS](/packages/elemenx-cron/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Cron
====

[](#cron)

> Cron - G4 Cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser

Install
-------

[](#install)

> Using Composer and Packagist

```
composer require g4/cron
```

```
require_once 'vendor/autoload.php';

$expression = \G4\Cron\CronExpression::factory('*/3 * * * * * *');

echo date('Y-m-d H:i:s'), ' = ', $expression->getNextRunDate()->format('Y-m-d H:i:s'), PHP_EOL;
echo date('Y-m-d H:i:s'), ' = ', $expression->getPreviousRunDate()->format('Y-m-d H:i:s'), PHP_EOL;
```

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
$ make install

```

### Run tests

[](#run-tests)

```
$ make test

```

License
-------

[](#license)

(The MIT License) see LICENSE file for details...

###  Health Score

22

—

LowBetter than 24% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~134 days

Total

3

Last Release

1063d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdcdd48a03a7306582ff6f487f424cf9cf7932fe5c2cab10ea3f1494d583439f?d=identicon)[branchzero](/maintainers/branchzero)

---

Top Contributors

[![dsamardzija](https://avatars.githubusercontent.com/u/366252?v=4)](https://github.com/dsamardzija "dsamardzija (7 commits)")[![gomboc](https://avatars.githubusercontent.com/u/1145653?v=4)](https://github.com/gomboc "gomboc (1 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (1 commits)")

---

Tags

crontaskelemenx

### Embed Badge

![Health badge](/badges/elemenx-cron/health.svg)

```
[![Health](https://phpackages.com/badges/elemenx-cron/health.svg)](https://phpackages.com/packages/elemenx-cron)
```

###  Alternatives

[dragonmantank/cron-expression

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

4.7k463.2M402](/packages/dragonmantank-cron-expression)[rewieer/taskschedulerbundle

Task Scheduler with CRON for Symfony

63238.5k](/packages/rewieer-taskschedulerbundle)[liebig/cron

Job scheduling for Laravel

445224.2k](/packages/liebig-cron)[symfony/scheduler

Provides scheduling through Symfony Messenger

889.9M38](/packages/symfony-scheduler)[butschster/cron-expression-generator

Cron expression generator

511.2M2](/packages/butschster-cron-expression-generator)[glooby/task-bundle

Scheduling of tasks for symfony made simple

3216.3k](/packages/glooby-task-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
