Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/auraphp/Aura.Di
Dependency Injection System
https://github.com/auraphp/Aura.Di
aura container-interop dependency-injection dependency-injection-container di-container php psr-11
Last synced: about 2 months ago
JSON representation
Dependency Injection System
- Host: GitHub
- URL: https://github.com/auraphp/Aura.Di
- Owner: auraphp
- License: mit
- Created: 2011-02-17T00:59:18.000Z (over 13 years ago)
- Default Branch: 4.x
- Last Pushed: 2023-10-07T01:29:27.000Z (12 months ago)
- Last Synced: 2024-04-04T06:44:29.092Z (6 months ago)
- Topics: aura, container-interop, dependency-injection, dependency-injection-container, di-container, php, psr-11
- Language: PHP
- Homepage:
- Size: 739 KB
- Stars: 347
- Watchers: 30
- Forks: 64
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php - Aura.Di - A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more. (Table of Contents / Dependency Injection)
- awesome-php-cn - Aura.Di - 一个可序列化的依赖注入容器构造函数和setter注入,接口和品质意识,配置继承,和更多. (目录 / 依赖注入 Dependency Injection)
- awesome-projects - Aura.Di - A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more. (PHP / Dependency Injection)
- awesome-php - Aura.Di - A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more. (Table of Contents / Dependency Injection)
README
# Aura.Di
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 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.## Quality
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Di/badges/quality-score.png?b=4.x)](https://scrutinizer-ci.com/g/auraphp/Aura.Di/)
[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Di/badges/coverage.png?b=4.x)](https://scrutinizer-ci.com/g/auraphp/Aura.Di/)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/auraphp/Aura.Di/CI?style=flat-square)To run the unit tests at the command line, issue `composer install` and then
`phpunit` at the package root. This requires [Composer][] to be available as
`composer`, and [PHPUnit][] to be available as `phpunit`.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](./docs/index.md).
Aura.Di 2.x and 3.x users may wish to read the [migrating](./docs/migrating.md) documentation.
[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
[PSR-11]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md
[Composer]: http://getcomposer.org/
[PHPUnit]: http://phpunit.de/
[Google Group]: http://groups.google.com/group/auraphp
[download a release]: https://github.com/auraphp/Aura.Di/releases
[aura/di]: https://packagist.org/packages/aura/di
[composer.json]: ./composer.json