PHPackages                             cherif/yii2-tactician - 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. [Framework](/categories/framework)
4. /
5. cherif/yii2-tactician

ActiveYii2-extension[Framework](/categories/framework)

cherif/yii2-tactician
=====================

Yii2 component for Tactician command bus library

0.3(10y ago)201.9k21BSD-3-ClausePHPCI failing

Since Sep 13Pushed 10y ago3 watchersCompare

[ Source](https://github.com/cherifGsoul/yii2-tactician)[ Packagist](https://packagist.org/packages/cherif/yii2-tactician)[ RSS](/packages/cherif-yii2-tactician/feed)WikiDiscussions master Synced 2d ago

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

Yii2 Tactician
==============

[](#yii2-tactician)

Tactician command bus library wrapper for Yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist cherif/yii2-tactician "*"

```

or add

```
"cherif/yii2-tactician": "*"

```

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

Usage
-----

[](#usage)

In the configuration file the component must be in the application bootstrap configuration:

```
...
'components'=>[
...
				'commandBus'=> [
					'class'=>'cherif\tactician\Tactician',
					'inflector' => 'League\Tactician\Handler\MethodNameInflector\HandleClassNameInflector',
					'extractor' => 'League\Tactician\Handler\CommandNameExtractor\ClassNameExtractor',
					'commandHandlerMap'=> [
						'cherif\tactician\tests\fixtures\commands\CompleteTaskCommand' => 'cherif\tactician\tests\fixtures\handlers\CompleteTaskCommandHandler',
					]
				]
			]
```

Somewhere in your app (maybe controller):

```
	Yii:$app->commandBus->handle(new CompleteTaskCommand)
```

You can add additional middlewares before handling a command like this:

```
$middleware = new MiddlewareClass();
$command = new MyCommand();

Yii::$app->commandBus->registerMiddleware($middleware);

Yii::$app->commandBus->handle($command);
```

For more information about configuration please visit [Tactician library homepage](http://tactician.thephpleague.com/).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

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

3

Last Release

3946d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4be70b1b1d59ebec6b57be354923c82f8c9d445e612398e73a838c48130183b?d=identicon)[cherif\_b](/maintainers/cherif_b)

---

Top Contributors

[![cherifGsoul](https://avatars.githubusercontent.com/u/109013?v=4)](https://github.com/cherifGsoul "cherifGsoul (6 commits)")

---

Tags

yii2extensioncommandtacticiancqs

### Embed Badge

![Health badge](/badges/cherif-yii2-tactician/health.svg)

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.8k59](/packages/skeeks-cms)[miloschuman/yii2-highcharts-widget

Highcharts widget for Yii 2 Framework.

1761.6M15](/packages/miloschuman-yii2-highcharts-widget)

PHPackages © 2026

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