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

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

vjik/yii2-psr-container-proxy
=============================

PSR-11 compatible container proxy for Yii2

2.1.0(2y ago)3781BSD-3-ClausePHPPHP ^7.2|^8.0

Since Aug 2Pushed 2y ago1 watchersCompare

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

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

Yii2 Container Proxy (PSR-11)
=============================

[](#yii2-container-proxy-psr-11)

[![Latest Stable Version](https://camo.githubusercontent.com/ada19d7c166244658578f5074f45411b395a7dadefca9df2e6d72837e68cf8c7/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f796969322d7073722d636f6e7461696e65722d70726f78792f762f737461626c652e706e67)](https://packagist.org/packages/vjik/yii2-psr-container-proxy)[![Total Downloads](https://camo.githubusercontent.com/f508ec2810bee2f1bc15b9318c818a4fabe5f8a15b34216d1fdb6fe46ed4b662/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f796969322d7073722d636f6e7461696e65722d70726f78792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/vjik/yii2-psr-container-proxy)[![Build status](https://github.com/vjik/yii2-psr-container-proxy/workflows/build/badge.svg)](https://github.com/vjik/yii2-psr-container-proxy/actions?query=workflow%3Abuild)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0199206157d68268518279d94ee4f26936e4f32e0af952aa3c8d605598946555/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766a696b2f796969322d7073722d636f6e7461696e65722d70726f78792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vjik/yii2-psr-container-proxy/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/4963511d01c3c3a91be95ca3036e0ead858db0e95c31773ca872de1f9d4fa3d6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766a696b2f796969322d7073722d636f6e7461696e65722d70726f78792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vjik/yii2-psr-container-proxy/?branch=master)

The package provide PSR-11 compatible container proxy for Yii2.

Requirements
------------

[](#requirements)

- PHP 7.2 or higher.
- Yii 2.0.40 or higher.

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

[](#installation)

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

```
composer require vjik/yii2-psr-container-proxy
```

General usage
-------------

[](#general-usage)

```
use Vjik\Yii2\Psr\ContainerProxy\ContainerProxy;

$containerProxy = new ContainerProxy(\Yii::$container);
```

Testing
-------

[](#testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

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

License
-------

[](#license)

The Yii2 Container Proxy (PSR-11) is free software. It is released under the terms of the BSD License. Please see [`LICENSE`](./LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~345 days

Total

4

Last Release

1073d ago

Major Versions

1.0.0 → 2.0.02021-03-19

PHP version history (2 changes)2.0.0PHP ^7.2

2.0.1PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/53e5ee1dedd50f71e4aeeac2929f786cdfb400359d4776e6cd806388d0d5df2c?d=identicon)[vjik](/maintainers/vjik)

---

Top Contributors

[![vjik](https://avatars.githubusercontent.com/u/525501?v=4)](https://github.com/vjik "vjik (12 commits)")

---

Tags

containerpsr-11yii2psrcontainerPSR-11yii2extension

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.0B3.7k](/packages/psr-container)[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)
