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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pe/component-cron

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

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 2d 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 35% 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

3125d 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

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.4k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[spatie/typescript-transformer

This is my package typescript-transformer

3957.8M24](/packages/spatie-typescript-transformer)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k39](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)

PHPackages © 2026

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