toandp / di
A simple PHP dependency injection container
v1.2.1
2019-10-09 03:50 UTC
Requires
- php: >=5.3.0
- psr/container: ^1.0
README
PHP tdp/di is a small Dependency Injection Container for PHP.
Installation
Before using PHP tdp/di in your project, add it to your composer.json
file:
$ ./composer.phar require toandp/di "^1.0"
Usage
Creating a container is a matter of creating a Container
instance:
use tdp\di\Container; $container = new Container();