PHPackages                             asmoday74/yii2-tasks - 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. asmoday74/yii2-tasks

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

asmoday74/yii2-tasks
====================

Task manager for Yii2

1.0.24(11mo ago)0261MITPHPPHP &gt;=8.2

Since Jul 20Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/asmoday74/yii2-tasks)[ Packagist](https://packagist.org/packages/asmoday74/yii2-tasks)[ RSS](/packages/asmoday74-yii2-tasks/feed)WikiDiscussions master Synced yesterday

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

Yii2 Tasks Module
=================

[](#yii2-tasks-module)

Task manager for Yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist asmoday74/yii2-tasks "*"

```

or add

```
"asmoday74/yii2-tasks": "*"

```

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

Configuration
-------------

[](#configuration)

To add a module to the project, add the following data in your configuration file:

```
    'modules' => [
        ...
        'tasks' => [
            'class' => 'asmoday74\tasks\Module',
            //optional config
            'jobsPath' => '@app/jobs', //path to job dir
            'maxExecutionTimeDirector' => 60, //maximum execution time of the director of the tasks
            'maxExecutionTimeWorker' => 600, //maximum task execution time. This value has priority in relation to the value established in the task itself.
            'minTimeRestart' => 60, //the minimum time before the restart of an erroneous task
            'sleepTime' => 1, //waiting time if there are no tasks, in seconds
            'deleteSuccessfulComplete' => true, //delete the task from the list after successful execution
            'deleteErrorTask' => true, //delete the task from the list after the end of attempts to execute
            'defaultMaxRestartCount' => 0 //the number of restart of the default task in case of error. 0 - endlessly
        ],
        ...
    ],
```

Migrations
----------

[](#migrations)

After configure module, run the following command in the console:

`$ php yii tasks/init`

And select the operation "**Apply all module migrations**"

or execute

```
php yii migrate --migrationPath=@vendor/asmoday74/yii2-tasks/src/migrations

```

Launching a worker to perform tasks
-----------------------------------

[](#launching-a-worker-to-perform-tasks)

To complete the tasks, you need to add a task to the task scheduler on the server (cron, task scheduler or etc). For example CRON:

```
* * * * * /path/to/php /your/site/dir/yii tasks/run > /dev/null 2>&1

```

This command will start the stream director to perform tasks from the list once per minute.

When starting, you can also use the following keys:
**--single** - get the list of tasks only once (disable the loop)
**--show-log** - output logs to the console
**--one** - execute only the first task from the list

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance51

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

2

Last Release

348d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2extensiontask

### Embed Badge

![Health badge](/badges/asmoday74-yii2-tasks/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1455.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

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

PHPackages © 2026

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