PHPackages                             dmitrivereshchagin/yii2-psr-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. dmitrivereshchagin/yii2-psr-container

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

dmitrivereshchagin/yii2-psr-container
=====================================

PSR-11 container adapter for Yii 2

v1.0.0(9y ago)06.5k↓35%1MITPHPPHP &gt;=5.4.0

Since Mar 14Pushed 9y ago1 watchersCompare

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

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

yii2-psr-container [![Build Status](https://camo.githubusercontent.com/6f103b6472aa4572e002c5c1ddf843af017ab61fa7bbce64f77f5fb0e030c865/68747470733a2f2f7472617669732d63692e6f72672f646d6974726976657265736863686167696e2f796969322d7073722d636f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dmitrivereshchagin/yii2-psr-container)
=================================================================================================================================================================================================================================================================================================================================================================

[](#yii2-psr-container-)

PSR-11 container adapter for Yii 2.

Install
-------

[](#install)

```
% composer require dmitrivereshchagin/yii2-psr-container

```

Usage
-----

[](#usage)

```
\Yii::$container->setSingleton(
    'Psr\Container\ContainerInterface',
    function ($container) {
        return new \yii\psr\container\ContainerAdapter($container);
    }
);
```

Testing
-------

[](#testing)

```
% composer test

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b3882ea129b793a5f17988707c4cf3b9d92f43770266a73dae654838b150970?d=identicon)[dmitrivereshchagin](/maintainers/dmitrivereshchagin)

---

Top Contributors

[![dmitrivereshchagin](https://avatars.githubusercontent.com/u/14558877?v=4)](https://github.com/dmitrivereshchagin "dmitrivereshchagin (8 commits)")

---

Tags

containerpsr-11yii2containerPSR-11yii2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmitrivereshchagin-yii2-psr-container/health.svg)

```
[![Health](https://phpackages.com/badges/dmitrivereshchagin-yii2-psr-container/health.svg)](https://phpackages.com/packages/dmitrivereshchagin-yii2-psr-container)
```

###  Alternatives

[phpwatch/simple-container

A fast and minimal PSR-11 compatible Dependency Injection Container with array-syntax and without auto-wiring

1810.1k2](/packages/phpwatch-simple-container)

PHPackages © 2026

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