A simple PHP dependency injection container

v1.2.1 2019-10-09 03:50 UTC

This package is auto-updated.

Last update: 2024-03-09 14:11:58 UTC


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