toandp / di
A simple PHP dependency injection container
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/toandp/di
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();