This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. The author suggests using the package instead.

Advanced Dependency Injection container built on top of default Yii2 container.

v0.1.0 2018-01-15 15:53 UTC

This package is not auto-updated.

Last update: 2019-02-20 19:06:19 UTC


Advanced Dependency Injection Container fo Yii 2.

Package information

Latest Stable Version Total downloads Monthly Downloads Licensing
Latest Stable Version Total Downloads Monthly Downloads License


PHP >= 7.1.0 is required.

Getting Started

Run the following command to add Yii2 Container to your project's composer.json. See Packagist for specific versions.

composer require php-kitchen/yii2-di

Or you can copy this library from:

Then add following line of code in you application entry point or bootstrap file:

Yii::$container = new \PHPKitchen\DI\Container();
spl_autoload_unregister([\PHPKitchen\DI\autoload\ClassLoader::class, 'loadClass']);

For additional information and guides go to the project documentation

Upgrade from 0.0.9

In 0.1.0 yii\base\Object changed to yii\base\BaseObject to support PHP 7.2 but it means that you need yii 2.0.13 and higher.


If you want to ask any questions, suggest improvements or just to talk with community and developers, join our server at Discord

Build status

CI status Code quality
Build Status Scrutinizer Code Quality