PHP tdp/di is a small Dependency Injection Container for PHP.
Before using PHP tdp/di in your project, add it to your composer.json
file:
$ ./composer.phar require toandp/di "^1.0"
Creating a container is a matter of creating a Container
instance:
use tdp\di\Container;
$container = new Container();