maduser / argon-container
A high-performance, modular, PSR-11 compliant dependency injection container for PHP.
Requires
- php: ^8.2
- nette/php-generator: ^4.2
- psr/container: ^2.0
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1.1
- phpunit/phpunit: ^11.5
- slevomat/coding-standard: ^8.24
- squizlabs/php_codesniffer: ^4.0
- vimeo/psalm: ^6.13
Replaces
- maduser/argon: v1.3.0
- dev-master
- v1.3.0
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v1.0.0-beta.9.0.2
- v1.0.0-beta.9.0.1
- v1.0.0-beta.9
- v1.0.0-beta.8
- v1.0.0-beta.7
- v1.0.0-beta.6
- v1.0.0-beta.5
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta.1
- dev-dev
- dev-tighten-compiler
- dev-true-strict-mode
- dev-CallableInvoker-update
- dev-interceptor-from-container
- dev-compiler-update
- dev-test
- dev-feature/toarray
This package is auto-updated.
Last update: 2026-05-24 14:30:46 UTC
README
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.
Installation
composer require maduser/argon-container
Quick Start
use 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();
Scope
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.
Quality Gate
composer check