PHPackages                             hyperia/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. [CLI &amp; Console](/categories/cli)
4. /
5. hyperia/yii2-cron

ActiveYii2-extension[CLI &amp; Console](/categories/cli)

hyperia/yii2-cron
=================

Auto block|unblock console command for the Yii2. One command without duplicate.

1.2.0(4y ago)01.1k↓50%1MITPHPPHP &gt;=7

Since Jul 26Pushed 4y agoCompare

[ Source](https://github.com/hyperia-sk/yii2-cron)[ Packagist](https://packagist.org/packages/hyperia/yii2-cron)[ RSS](/packages/hyperia-yii2-cron/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (9)Used By (1)

Yii Cron extension
==================

[](#yii-cron-extension)

Provide a logic and functionality to block console commands until they execute. Unlocks commands exhibited at the expiration of the block if the server is down.

#### Usage

[](#usage)

```
public function behaviors()
{
    return array(
        'LockUnLockBehavior' => array(
            'class' => 'hyperia\cron\commands\behaviors\LockUnLockBehavior',
            'timeLock' => 0 //Set time lock duration for command in seconds
        )
    );
}
```

Any command can be converted to daemon

```
class AwesomeCommand extends DaemonController
{
    /**
     * Daemon name
     *
     * @return string
     */
    protected function daemonName(): string
    {
        return 'mail-queue';
    }

    /**
     * Run send mail
     */
    public function worker()
    {
        // Some logic that will be repeateble
    }
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~407 days

Recently: every ~444 days

Total

7

Last Release

1500d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.1.2PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/9861d8483a334bd54621b1829f2b55620417df08080a0fe29426659eacb9385b?d=identicon)[karster](/maintainers/karster)

---

Top Contributors

[![lexxorlov](https://avatars.githubusercontent.com/u/7910574?v=4)](https://github.com/lexxorlov "lexxorlov (6 commits)")[![jurajkalafut](https://avatars.githubusercontent.com/u/16917831?v=4)](https://github.com/jurajkalafut "jurajkalafut (1 commits)")[![orlov-alexey](https://avatars.githubusercontent.com/u/95412821?v=4)](https://github.com/orlov-alexey "orlov-alexey (1 commits)")

### Embed Badge

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

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

###  Alternatives

[samdark/yii2-webshell

A web shell that allows to run yii console commands and create your own commands.

22981.5k1](/packages/samdark-yii2-webshell)[fedemotta/yii2-cronjob

Yii2 extension to help in the creation of automated console scripts

2233.5k](/packages/fedemotta-yii2-cronjob)[trntv/yii2-tactician

A simple, flexible command bus. This package provide it's integration with Yii2

1458.3k](/packages/trntv-yii2-tactician)

PHPackages © 2026

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