PHPackages                             azurre/php-cron-scheduler - 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. azurre/php-cron-scheduler

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

azurre/php-cron-scheduler
=========================

Cron jobs manager

1.3(1y ago)0173[1 issues](https://github.com/azurre/php-cron-scheduler/issues)MITPHP

Since Oct 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/azurre/php-cron-scheduler)[ Packagist](https://packagist.org/packages/azurre/php-cron-scheduler)[ Docs](https://github.com/azurre/scheduler)[ RSS](/packages/azurre-php-cron-scheduler/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PHP Cron Scheduler [![Latest Version](https://camo.githubusercontent.com/26aa1d4f3eca68768259c40e6c4d910863f41c4a7a7dc7d8a1301c56b08600b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617a757272652f7068702d63726f6e2d7363686564756c65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/azurre/php-cron-scheduler/releases)
=============================================================================================================================================================================================================================================================================================================================================================================

[](#php-cron-scheduler-)

Simple cron jobs manager. Keep your project cron jobs in your project!

Installation
============

[](#installation)

Require the package with composer:

```
composer require azurre/php-cron-scheduler

```

Usage
=====

[](#usage)

Add scheduler starter to cron:

```
$ crontab -e
```

```
* * * * * /usr/bin/php /path/to/project/scheduler.php >> /path/to/project/scheduler.log 2>&1

```

Sample of scheduler.php

```
$loader = require_once __DIR__ . '/vendor/autoload.php';

use Azurre\Component\Cron\Scheduler;
use Azurre\Component\Cron\Expression;

$e = new Expression();

echo $e->monthly(28); // 0 0 28 * *
echo $e->weekly($e::FRIDAY)->at('05:30'); // 30 5 * * 5
echo $e->daily('06:10'); // 10 6 * * *

echo Expression::create()  // */5 0 16 1 5
    ->setMinute('*/5')
    ->setHour('*')
    ->setDayOfMonth(16)
    ->setDayOfWeek('fri')
    ->setMonth('Jan');

// ------------

$testFunc = function () {
    echo 'TEST OK';
};
$scheduler = new Scheduler();
$scheduler
    ->addJob('* * * * *', function() {
        // just do something
    })->addJob('0 0 * * * *', $testFunc);
$scheduler->run();

// -----------

$logPath = '/path/to/log.log';
$scheduler = new Scheduler('2021-07-05 06:10:00');
$scheduler->addJob($e, function () use($logPath) {
    // run standalone php script
    $cmd = "/usr/bin/php /path/to/script.php >> {$logPath} 2>&1";
    system($cmd);
});
$scheduler->run();
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance45

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~1029 days

Total

4

Last Release

424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5bbeafb1d06ec9c1ba940980a19a3fd3902cef3499a446726677986be73b0ec?d=identicon)[a.milenin](/maintainers/a.milenin)

---

Top Contributors

[![azurre](https://avatars.githubusercontent.com/u/2183975?v=4)](https://github.com/azurre "azurre (30 commits)")

---

Tags

schedulercron

### Embed Badge

![Health badge](/badges/azurre-php-cron-scheduler/health.svg)

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

###  Alternatives

[dragonmantank/cron-expression

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

4.7k474.1M487](/packages/dragonmantank-cron-expression)[symfony/scheduler

Provides scheduling through Symfony Messenger

8810.8M52](/packages/symfony-scheduler)[lorisleiva/cron-translator

Makes CRON expressions human-readable

3148.5M31](/packages/lorisleiva-cron-translator)[rewieer/taskschedulerbundle

Task Scheduler with CRON for Symfony

63242.1k](/packages/rewieer-taskschedulerbundle)[butschster/cron-expression-generator

Cron expression generator

511.4M2](/packages/butschster-cron-expression-generator)[ttree/scheduler

Simple task scheduler for Neos Flow Framework

21108.8k1](/packages/ttree-scheduler)

PHPackages © 2026

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