aura / di
A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.
Installs: 885 034
Dependents: 63
Suggesters: 2
Security: 0
Stars: 349
Watchers: 28
Forks: 63
Open Issues: 1
Requires
- php: ^8.0
- psr/container: ^2.0.2
Requires (Dev)
- composer/class-map-generator: ^1.1
- phpstan/phpstan: ^1.11.1
- phpunit/phpunit: ^9.0 || ^10.0
- producer/producer: ^2.3
Suggests
- composer/class-map-generator: Required for scanning classes and annotations
Provides
- 5.x-dev
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-rc.1
- 5.0.0-alpha.2
- 5.0.0-alpha.1
- 4.x-dev
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.0
- 4.0.0-beta1
- 4.0.0-alpha1
- 3.x-dev
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 3.0.0-beta2
- 3.0.0-beta1
- 3.0.0-alpha1
- 2.x-dev
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 2.0.0-beta2
- 2.0.0-beta1
- 1.x-dev
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- dev-lockex
- dev-multiset
- dev-2.x-lazy-get-call
This package is auto-updated.
Last update: 2024-10-17 20:47:10 UTC
README
A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.
Installation and Autoloading
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 src/
directory.
Dependencies
This package requires PHP 8.0 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 4.x for PHP 7.2+ or 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.
Quality
To run the unit tests at the command line, issue composer install
and then
composer test
at the package root. This requires Composer to be available as
composer
.
This package attempts to comply with PSR-1, PSR-2, PSR-4 and PSR-11. If you notice compliance oversights, please send a patch via pull request.
Community
To ask questions, provide feedback, or otherwise communicate with other Aura users, please join our Google Group.
Documentation
This package is fully documented here.
Aura.Di 2.x, 3.x and 4.x users may wish to read the migrating documentation.