PHPackages                             xcopy/yii2-queue-monitor - 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. xcopy/yii2-queue-monitor

ActiveYii2-extension

xcopy/yii2-queue-monitor
========================

Yii2 Queue Analytics Module

02PHP

Since Oct 4Pushed 7mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Queue Analytics Module
===========================

[](#yii2-queue-analytics-module)

The module collects statistics about working of queues of an application, and provides web interface for research. Also the module allows to stop and replay any jobs manually.

[![Latest Stable Version](https://camo.githubusercontent.com/9b1f779c99bcee794d13165f26d272070bbdf4f707487862753e1421b7240875/68747470733a2f2f706f7365722e707567782e6f72672f7a68757261766c6a6f762f796969322d71756575652d6d6f6e69746f722f762f737461626c652e737667)](https://packagist.org/packages/zhuravljov/yii2-queue-monitor)[![Total Downloads](https://camo.githubusercontent.com/52938a9f77997dc0a0f55b3ecf941eb5d4bd2e116870ad945cc355b2d7289e8b/68747470733a2f2f706f7365722e707567782e6f72672f7a68757261766c6a6f762f796969322d71756575652d6d6f6e69746f722f646f776e6c6f6164732e737667)](https://packagist.org/packages/zhuravljov/yii2-queue-monitor)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fbf620ea9e631f6b8486c38d159e12ef20d040eac35a222f5a1099ecf6d6f81c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a68757261766c6a6f762f796969322d71756575652d6d6f6e69746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zhuravljov/yii2-queue-monitor/?branch=master)

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

[](#installation)

The preferred way to install the extension is through [composer](http://getcomposer.org/download/). Add to the require section of your `composer.json` file:

```
"zhuravljov/yii2-queue-monitor": "~0.1"

```

Usage
-----

[](#usage)

To configure the statistics collector, you need to add monitor behavior for each queue component. Update common config file:

```
return [
    'components' => [
        'queue' => [
            // ...
            'as jobMonitor' => \zhuravljov\yii\queue\monitor\JobMonitor::class,
            'as workerMonitor' => \zhuravljov\yii\queue\monitor\WorkerMonitor::class,
        ],
    ],
];
```

There are storage options that you can configure by common config file:

```
return [
    'container' => [
        'singletons' => [
            \zhuravljov\yii\queue\monitor\Env::class => [
                'cache' => 'cache',
                'db' => 'db',
                'pushTableName'   => '{{%queue_push}}',
                'execTableName'   => '{{%queue_exec}}',
                'workerTableName' => '{{%queue_worker}}',
            ],
        ],
    ],
];
```

If you want use migrations of the extension, configure migration command in console config:

```
'controllerMap' => [
    'migrate' => [
        'class' => \yii\console\controllers\MigrateController::class,
        'migrationNamespaces' => [
            //...
            'zhuravljov\yii\queue\monitor\migrations',
        ],
    ],
],
```

And apply migrations.

### Web

[](#web)

Finally, modify your web config file to turn on web interface:

```
return [
    'bootstrap' => [
        'monitor',
    ],
    'modules' => [
        'monitor' => [
            'class' => \zhuravljov\yii\queue\monitor\Module::class,
        ],
    ],
];
```

It will be available by URL `http://yourhost.com/monitor`.

### Console

[](#console)

There is console garbage collector:

```
'controllerMap' => [
    'monitor' => [
        'class' => \zhuravljov\yii\queue\monitor\console\GcController::class,
    ],
],
```

It can be executed as:

```
php yii monitor/clear-deprecated P1D
```

Where `P1D` is [interval spec](https://www.php.net/manual/en/dateinterval.construct.php) that specifies to delete all records one day older.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance45

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/00b9a5db4855c1ef50ec05482f605d3147cd096a0d4a199fdf711642fca0f7fc?d=identicon)[xcopy](/maintainers/xcopy)

---

Top Contributors

[![zhuravljov](https://avatars.githubusercontent.com/u/1656851?v=4)](https://github.com/zhuravljov "zhuravljov (133 commits)")[![xcopy](https://avatars.githubusercontent.com/u/202339?v=4)](https://github.com/xcopy "xcopy (5 commits)")[![Insolita](https://avatars.githubusercontent.com/u/1847402?v=4)](https://github.com/Insolita "Insolita (2 commits)")[![DD174](https://avatars.githubusercontent.com/u/2971088?v=4)](https://github.com/DD174 "DD174 (1 commits)")

### Embed Badge

![Health badge](/badges/xcopy-yii2-queue-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/xcopy-yii2-queue-monitor/health.svg)](https://phpackages.com/packages/xcopy-yii2-queue-monitor)
```

PHPackages © 2026

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