Registry / utility / mnapoli-php-di

mnapoli-php-di

JSON →
library7.1.1phppackagistunverified

The dependency injection container for humans

composer require mnapoli/php-di
INSTALL
IMPORT
SIG · MNAPOLI-PHP-DI
M
mnapoli-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 and retrieve an instance.

<?php use DI\ContainerBuilder; $builder = new ContainerBuilder(); $container = $builder->build(); $instance = $container->get(SomeClass::class);
Debug
Known issues
breakingPHP-DI 7.x requires PHP 8.0+; older versions (6.x) support PHP 7.2+.
fix
Upgrade to PHP 8.0+ or use PHP-DI 6.x if on PHP 7.x.
affects: >=7.0.0
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
mnapoli-php-di — pip install mnapoli-php-di · libregistry