PHPackages                             seahorse/aura-di-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. seahorse/aura-di-tactician

ActiveLibrary

seahorse/aura-di-tactician
==========================

A simple aura/di container config for league/tactician

06PHP

Since Jul 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SeahorseReader/Seahorse-Aura-Di-Tactician)[ Packagist](https://packagist.org/packages/seahorse/aura-di-tactician)[ RSS](/packages/seahorse-aura-di-tactician/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Aura Di ContainerBuiler config for Tactician
============================================

[](#aura-di-containerbuiler-config-for-tactician)

A simple [aura/di](https://github.com/auraphp/Aura.Di) container config for [league/tactician](http://tactician.thephpleague.com).

Add `Seahorse\Tactician\Config` to your [ContainerBuilder](https://github.com/auraphp/Aura.Di/blob/3.x/docs/config.md).

`League\Tactician\CommandBus` has the service name `league:tactician/commandbus`

Mapping commands to handlers
----------------------------

[](#mapping-commands-to-handlers)

In your `ContainerBuilder` configuration class you need to map commands to handlers.

```
$di->set('service-name', $di->lazyNew('Your\Handler'));

$di->values['commandsToHandlersMap'] = [
    YourCommand::CLASS => 'service-name',
];
```

Adding middleware
-----------------

[](#adding-middleware)

Override the middleware params in your `ContainerBuilder` configuration class.

```
$di->params['League\Tactician\CommandBus']['middleware'] = $di->lazyArray([
        // add your middleware, order is important
        $di->lazyNew('League\Tactician\Plugins\LockingMiddleware'),
        $di->lazyNew('League\Tactician\Handler\CommandHandlerMiddleware'),
    ]
);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/8af5b9b027eee69d9301b47ecfbc28a3f064d1f71742fa161e6b56d8792a1b68?d=identicon)[glassrobot](/maintainers/glassrobot)

---

Tags

auraaura-diauraphpcomposercomposer-packageleague-tacticianphpphpleague

### Embed Badge

![Health badge](/badges/seahorse-aura-di-tactician/health.svg)

```
[![Health](https://phpackages.com/badges/seahorse-aura-di-tactician/health.svg)](https://phpackages.com/packages/seahorse-aura-di-tactician)
```

PHPackages © 2026

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