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

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

This package is auto-updated.

Last update: 2025-10-09 17:29:32 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();