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 LibertyCode\Di\Container;
Create a dependency injection container and retrieve a service.
use LibertyCode\Di\Container;
$container = new Container();
$container->set('db', function() {
return new PDO('mysql:host=localhost;dbname=test', 'user', 'pass');
});
$db = $container->get('db');
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.