PHPackages                             league/tactician-container - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. league/tactician-container

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

league/tactician-container
==========================

Tactician integration for any container implementing PSR-11

v3.0.0(4y ago)7710.1M—8.7%10[2 issues](https://github.com/thephpleague/tactician-container/issues)20MITPHPPHP &gt;=7.4

Since Nov 26Pushed 4y ago3 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (5)Used By (20)

Tactician Container plugin
--------------------------

[](#tactician-container-plugin)

[![Author](https://camo.githubusercontent.com/f7bee050c0c36786bb499713d87f7ed348cfb250d65603968cfa5ada196b2c0e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406e6967656c677265656e7761792d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/NigelGreenway)[![Latest Version](https://camo.githubusercontent.com/b6848f0ff06e1e11cee7d52ef009a8ba6728c052e2da41d93a5103fd7f6d4cc5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f74616374696369616e2d636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/tactician-container/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/c606e4c8cae2c74be84a44f0f89cc16394a98830089a86b656763efd21635a99/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f74616374696369616e2d636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/tactician-container)[![HHVM Status](https://camo.githubusercontent.com/77a68888727b1d2dd900d7933c87dfeabe35a5555d9e84d2fd2faaf240802a7b/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6c65616775652f74616374696369616e2d636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/league/tactician-container)[![Total Downloads](https://camo.githubusercontent.com/291128d6753006457d01750ec1801c23af6d9c4091d526259c963349f3a7b649/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f74616374696369616e2d636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/tactician-container)

**This plugin allows lazy loading CommandHandlers from a [`PSR-11`](https://github.com/php-fig/container) container.**

Install
-------

[](#install)

Via Composer

```
$ composer require league/tactician-container
```

Usage
-----

[](#usage)

Documentation is available on the [official website](http://tactician.thephpleague.com/plugins/container/).

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

Credits
-------

[](#credits)

- [Nigel Greenway](https://github.com/NigelGreenway)
- [Jonathan Bernardi](https://github.com/spekkionu)
- [Hannes Van De Vreken](https://github.com/hannesvdvreken)
- [Ross Tuck](https://github.com/rosstuck)
- [All Contributors](https://github.com/thephpleague/tactician-container/contributors)

Security
--------

[](#security)

Disclosure information can be found on [the main Tactician repo](https://github.com/thephpleague/tactician#security).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~737 days

Total

4

Last Release

1614d ago

Major Versions

0.7 → v1.0.02015-12-31

v1.0.0 → 2.0.02017-04-13

2.0.0 → v3.0.02021-12-16

PHP version history (2 changes)0.7PHP &gt;=5.5

v3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/08b3ff6fe26e7316ae1da92af62c040380ae6bb1056794d44c6151ac74240e54?d=identicon)[rosstuck](/maintainers/rosstuck)

---

Top Contributors

[![rosstuck](https://avatars.githubusercontent.com/u/146766?v=4)](https://github.com/rosstuck "rosstuck (21 commits)")[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (5 commits)")[![robertpustulka](https://avatars.githubusercontent.com/u/7437773?v=4)](https://github.com/robertpustulka "robertpustulka (3 commits)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (3 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (1 commits)")[![jonbernardi](https://avatars.githubusercontent.com/u/38191?v=4)](https://github.com/jonbernardi "jonbernardi (1 commits)")[![tyx](https://avatars.githubusercontent.com/u/245494?v=4)](https://github.com/tyx "tyx (1 commits)")

---

Tags

containercontainer-interopleagueditacticianinteroperable

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/league-tactician-container/health.svg)

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

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356968.3k58](/packages/aura-di)[mrclay/props-dic

Props is a simple DI container that allows retrieving values via custom property and method names

3611.7M3](/packages/mrclay-props-dic)[tomphp/container-configurator

Configure your application and the Dependency Injection Container (DIC) via config arrays or config files.

2040.4k](/packages/tomphp-container-configurator)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)

PHPackages © 2026

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