PHPackages                             comradefuzz/yii2-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. comradefuzz/yii2-cron

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

comradefuzz/yii2-cron
=====================

Allows to define and execute cronjobs in Yii2 application

1.0.1(9y ago)02.0kBSD-3-ClausePHP

Since May 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/comradefuzz/yii2-cron)[ Packagist](https://packagist.org/packages/comradefuzz/yii2-cron)[ RSS](/packages/comradefuzz-yii2-cron/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Yii2 cron extension
===================

[](#yii2-cron-extension)

Allows to define and execute cronjobs in Yii2 application

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist comradefuzz/yii2-cron "*"

```

or add

```
"comradefuzz/yii2-cron": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Add cron console controller to your config and define your jobs :

```
    'controllerMap' => [
            'cron' => [
                'class' => 'comradefuzz
                \yii2cron\CronController',
                'crontab' => [
                    ['* * * * *',  'yii app/my-useful-action'],
                    ['* * * * *',  'echo "ONE MORE"'],
                    ['*/5 * * * *',  'echo "Not so fast"'],
                ],
                'log' => true, // Enables logging (default `false`)
                'logCategory' => 'crontab', // Log category (default `crontab`)
            ],
        ]
```

Then configure your server crontab:

```
* * * * * /path/to/yii cron > /dev/null 2>&1
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~13 days

Total

2

Last Release

3311d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1185473?v=4)[comradefuzz](/maintainers/comradefuzz)[@comradefuzz](https://github.com/comradefuzz)

---

Top Contributors

[![comradefuzz](https://avatars.githubusercontent.com/u/1185473?v=4)](https://github.com/comradefuzz "comradefuzz (12 commits)")

---

Tags

cronyii2extension

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1454.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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