Registry / utility / php-di-php-di

php-di-php-di

JSON →
library7.1.1phppackagistunverified

The dependency injection container for humans

composer require php-di/php-di
INSTALL
IMPORT
SIG · PHP-DI-PHP-DI
P
php-di-php-di
utilityphpv7.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ContainerBuilder
use DI\ContainerBuilder;

Build a dependency injection container with definitions

use DI\ContainerBuilder; $builder = new ContainerBuilder(); $builder->addDefinitions([ 'logger' => function () { return new Monolog\Logger('app'); } ]); $container = $builder->build();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
7.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
php-di-php-di — pip install php-di-php-di · libregistry