PHPackages                             mkgor/simple-di - 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. [Framework](/categories/framework)
4. /
5. mkgor/simple-di

ActiveProject[Framework](/categories/framework)

mkgor/simple-di
===============

Simple implementation of dependency injection container on PHP

00PHP

Since Jun 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mkgor/simple-di)[ Packagist](https://packagist.org/packages/mkgor/simple-di)[ RSS](/packages/mkgor-simple-di/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SimpleDI
========

[](#simpledi)

SimpleDI is a lightweight and easy to use dependency injection container for PHP.

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

[](#installation)

You can install SimpleDI via composer

`composer require mkgor/simple-di`

That's it! You already can use it, because it need a little configuration to provide base functionality of DIC

How to use it?
--------------

[](#how-to-use-it)

Just call `$container->get()` method and it'll resolve all dependencies of specified class and returns it to you!

*SomeDependency.php*

```
