PHPackages                             pe/component-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. pe/component-cron

ActiveLibrary

pe/component-cron
=================

Crontab manipulation library

v1.0.0(8y ago)011MITPHPPHP &gt;=5.5

Since Dec 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pavlenko/php-component-cron)[ Packagist](https://packagist.org/packages/pe/component-cron)[ RSS](/packages/pe-component-cron/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Cron component
==============

[](#cron-component)

### Installation

[](#installation)

```
php composer.phar require pe/component-cron:^1.0
```

### Usage

[](#usage)

```
use PE\Component\Cron\Crontab;
use PE\Component\Cron\Job;

// Instantiate with default binary path
$crontab = new Crontab();

// Or instantiate with custom binary path
$crontab = new Crontab('/usr/sbin/crontab');

// Get all jobs
$crontab->all();// returns array of Job instances

// Create new job from string
$job = Job::fromString('*/5 * * * * command');

// Or create programmatically
$job = (new Job())->setMinute('*/5')->setCommand('command');

// Add job
$crontab->add($job);

// Get job by index
$job = $crontab->get(0);

// Remove job by index
$crontab->remove(0);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3078d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cf2cc7aeca3adf2a9ff304032c47261ecc3e94b18dbc1c972f1bfa9494ba645?d=identicon)[pavlenko](/maintainers/pavlenko)

---

Top Contributors

[![pavlenko](https://avatars.githubusercontent.com/u/1759651?v=4)](https://github.com/pavlenko "pavlenko (1 commits)")

---

Tags

cron

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[jms/job-queue-bundle

Allows to run and schedule Symfony console commands as background jobs.

3462.3M5](/packages/jms-job-queue-bundle)[omnilight/yii2-scheduling

Scheduling extension for Yii2 framework

3181.0M7](/packages/omnilight-yii2-scheduling)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[mybuilder/cronos

Configure Cron task through PHP

152526.8k2](/packages/mybuilder-cronos)[shapecode/cron-bundle

This bundle provides scheduled execution of Symfony commands

59493.0k2](/packages/shapecode-cron-bundle)

PHPackages © 2026

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