maduser/argon-container is the dependency injection container at the center of the
Argon package suite. It is PSR-11 compatible, strict by design, and built around
explicit service definitions instead of framework magic.
composer require maduser/argon-containeruse Maduser\Argon\Container\ArgonContainer;
$container = new ArgonContainer();
$container->set(LoggerInterface::class, MonologLogger::class)
->shared();
$logger = $container->get(LoggerInterface::class);Service providers can group package or application registrations:
$container->register(AppServiceProvider::class);
$container->boot();The container owns service binding, argument resolution, contextual bindings, service tags, lifecycle hooks, and compiled-container generation. It does not provide HTTP routing, middleware, console commands, or application bootstrapping; those belong to the surrounding Argon packages.
composer check