Skip to content
/ di Public

A simple PHP dependency injection container

License

Notifications You must be signed in to change notification settings

toandp/di

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP tdp/di

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();