Bubbles DI

Minimalistic, extensible, lazy dependency injection container.
Why?
It's always good to follow best practices even when you don't use a full-stack framework. If you are writing a small, focused back-end service or script, but still want the full power of DI, Bubbles would help turning your plain old PHP classes into injectable services.
How?
Installation
composer require acvos/bubbles
Usage
$bubbles = new Acvos\Bubbles\ContainerManager();
$container = $bubbles->spawn();
$container
->register('zzz', 200)
->register('test.service', 'Acvos\Bubbles\Example\TestService')
->addDependency('Setter injection example', 'bob')
->addDependency('@zzz', 'bar')
->addDependency(100, 'foo')
->register('test.another.service', 'Acvos\Bubbles\Example\TestService')
->addDependency('@test.service')
->addDependency('zzz');
$service = $container->get('test.another.service');