Registry / utility / maleficarum-ioc

maleficarum-ioc

JSON →
library3.0.1phppackagistunverified

Maleficarum IoC component for dependency injection.

composer require maleficarum/ioc
INSTALL
IMPORT
SIG · MALEFICARUM-IOC
M
maleficarum-ioc
utilityphpv3.0.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.

Container
use Maleficarum\Ioc\Container;

Create an IoC container and retrieve a shared service.

use Maleficarum\Ioc\Container; $container = new Container(); $container->share('db', function() { return new PDO('mysql:host=localhost;dbname=test', 'user', 'pass'); }); $db = $container->get('db');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
maleficarum-ioc — pip install maleficarum-ioc · libregistry