PHPackages                             xtrasmal/tactician-provider - 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. xtrasmal/tactician-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xtrasmal/tactician-provider
===========================

Laravel ServiceProvider for the Tactician CommandBus library

06[1 issues](https://github.com/xtrasmal/TacticianProvider/issues)PHP

Since Apr 5Pushed 11y ago3 watchersCompare

[ Source](https://github.com/xtrasmal/TacticianProvider)[ Packagist](https://packagist.org/packages/xtrasmal/tactician-provider)[ RSS](/packages/xtrasmal-tactician-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TacticianProvider
=================

[](#tacticianprovider)

[![Laravel](https://camo.githubusercontent.com/fefa73cbcb138f313755edeb816d67030c8ca82a24371d2c30c4605f1a1d6b86/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![Build Status](https://camo.githubusercontent.com/db653b2cad5c1461e23341f5645c711ede7caa162cb4622b3da415fcd0ba51e0/68747470733a2f2f7472617669732d63692e6f72672f78747261736d616c2f54616374696369616e50726f76696465722e737667)](https://travis-ci.org/xtrasmal/TacticianProvider)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/375f6bec51a7606b039e6a32fa439e59d89afd512a3cde8aa192a7055e2dd430/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f78747261736d616c2f54616374696369616e50726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xtrasmal/TacticianProvider/?branch=master)

Laravel ServiceProvider for the Tactician library

If you are looking for a Symfony2 Bundle or want to help:

Setup
-----

[](#setup)

First add this provider to your composer dependencies:

`> composer require xtrasmal\tactician-provider`

Then register it in your config/app.php.

```
	'providers' => [
		'Xtrasmal\TacticianProvider\TacticianServiceProvider',
            // ...
```

That's it!

Configuring Command Handlers
----------------------------

[](#configuring-command-handlers)

The most common use case with Tactician is passing a Command to the Command Bus and having it routed to the Command Bus.

Since handlers often have extra dependencies and are best lazily-loaded, you'll want to register them in the IoC container.

Let's say we have two classes, `RegisterUserCommand` and `RegisterUserHandler`. Add the following to config/tactician.php

```
return [

    'buses' => [

        'default' => [

            'commandbus' => 'League\Tactician\CommandBus',

            'middleware' => [
                // ...
            ],

            'commmands' => [

                'RegisterUser' => [
                    'command' => 'Namespace\RegisterUserCommand',
                    'handler' => 'Namespace\RegisterUserHandler'
                ],
                'RemoveUser' => [
                    'command' => 'Namespace\RemoveUserCommand',
                    'handler' => 'Namespace\RemoveUserHandler'
                ],

                // ...

            ],

        ],

    ],
];
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

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/5d83ca734e0c84ff0ecddccec7682671d6a38737a31a76b8030c8400881173e3?d=identicon)[netbulae](/maintainers/netbulae)

### Embed Badge

![Health badge](/badges/xtrasmal-tactician-provider/health.svg)

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

###  Alternatives

[mydnic/nova-kustomer

Laravel Nova Kustomer Feedback Tool

2017.8k](/packages/mydnic-nova-kustomer)

PHPackages © 2026

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