A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.
This package is installable and PSR-4 autoloadable via Composer as aura/di:
composer require aura/di
Alternatively, download a release, or clone this repository, then map the
Aura\Di\ namespace to the package
This package requires PHP 7.2 or later. We recommend using the latest available version of PHP as a matter of principle. If you are interested in using this package for older PHP versions, use version 3.x for PHP 5.5+.
Aura library packages may sometimes depend on external interfaces, but never on external implementations. This allows compliance with community standards without compromising flexibility. For specifics, please examine the package composer.json file.
To ask questions, provide feedback, or otherwise communicate with other Aura users, please join our Google Group.
This package is fully documented here.
Aura.Di 2.x and 3.x users may wish to read the migrating documentation.