PHPackages                             gofmanaa/yii2-crontask - 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. gofmanaa/yii2-crontask

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

gofmanaa/yii2-crontask
======================

yii2 cron task manager

1.4(8y ago)912.6k4[1 issues](https://github.com/gofmanaa/yii2-crontask/issues)BSD-3-ClausePHP

Since Jan 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gofmanaa/yii2-crontask)[ Packagist](https://packagist.org/packages/gofmanaa/yii2-crontask)[ RSS](/packages/gofmanaa-yii2-crontask/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

gofmanaa/yii2-crontask
======================

[](#gofmanaayii2-crontask)

yii2 cron task manager

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist gofmanaa/yii2-crontask "*"

```

or add

```
"gofmanaa/yii2-crontask": "*"

```

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

Requirements
------------

[](#requirements)

Linux OS Yii2

Usage
-----

[](#usage)

Add to console config:

```
return [
    'bootstrap' => [
        'crontask'
    ],
    'modules' => [
        'crontask' => [
            'class' => 'gofmanaa\crontask\Module',
            'fileName'=>'cron.txt', //optional
            'params'=>[ '2>&1' ], //common params
            'yiiPath' => null // yii execute path
            'phpPath' => '/usr/bin/php', //default php path
            'tasks'=>[
                'dosomething'=>
                            [
                               'params'=>[ '--some=something' , '>/dev/null' ], //task params
                               'command'=>'path/to/controller/action',
                               'min'=>'*/1',
                               'hour'=>'*',
                               'day'=>'*',
                               'month'=>'*',
                               'dayofweek'=>'*',
                            ],
                'dosomething2'=>
                            [
                                'command'=>'path/to/controller/action',
                                'min'=>'*/2',
                            ],
            ]
        ],
    ],
]
```

Console command
---------------

[](#console-command)

```
- crontask                    Provides cron information about console commands.
    crontask/index (default)  Displays available commands or the detailed information
    crontask/ls               List App Cron tasks;   crontask/ls a All cron jobs
    crontask/start            Start cron tasks,  "crontask/start dosomething2"  start single task
    crontask/stop             Stop App cron. "crontask/stop 3"  stop task by index 3
    crontask/restart          Restart cron tasks

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~217 days

Total

5

Last Release

2948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b84e6af576c112f5cfb1ef04877a9ae3a2a10a6ded9a42a9f6eca010200ef8d?d=identicon)[gofmanaa](/maintainers/gofmanaa)

---

Top Contributors

[![gofmanaa](https://avatars.githubusercontent.com/u/10075470?v=4)](https://github.com/gofmanaa "gofmanaa (3 commits)")[![poprigun](https://avatars.githubusercontent.com/u/3830013?v=4)](https://github.com/poprigun "poprigun (2 commits)")[![poprigun13](https://avatars.githubusercontent.com/u/11268541?v=4)](https://github.com/poprigun13 "poprigun13 (1 commits)")

---

Tags

cronyii2extensiontaskcrontab

### Embed Badge

![Health badge](/badges/gofmanaa-yii2-crontask/health.svg)

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

###  Alternatives

[webtoolsnz/yii2-scheduler

A scheduled task runner for Yii2 applications

1884.0k](/packages/webtoolsnz-yii2-scheduler)[fedemotta/yii2-cronjob

Yii2 extension to help in the creation of automated console scripts

2234.3k](/packages/fedemotta-yii2-cronjob)

PHPackages © 2026

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