Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thephpleague/container
Small but powerful dependency injection container
https://github.com/thephpleague/container
dependency-injection php
Last synced: about 1 month ago
JSON representation
Small but powerful dependency injection container
- Host: GitHub
- URL: https://github.com/thephpleague/container
- Owner: thephpleague
- License: mit
- Created: 2015-01-12T10:22:38.000Z (almost 10 years ago)
- Default Branch: 4.x
- Last Pushed: 2024-10-23T12:07:23.000Z (about 2 months ago)
- Last Synced: 2024-10-29T19:18:19.607Z (about 1 month ago)
- Topics: dependency-injection, php
- Language: PHP
- Homepage: http://container.thephpleague.com
- Size: 1.37 MB
- Stars: 844
- Watchers: 22
- Forks: 102
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-php - Container - Another flexible dependency injection container. (Table of Contents / Dependency Injection)
- awesome-projects - Container - Another flexible dependency injection container. (PHP / Dependency Injection)
- awesome-php - Container - Another flexible dependency injection container. (Table of Contents / Dependency Injection)
- awesome-php-cn - Container - 另一个灵活的依赖注入容器. (目录 / 依赖注入 Dependency Injection)
README
# Container (Dependency Injection)
[![Author](http://img.shields.io/badge/[email protected]?style=flat-square)](https://twitter.com/philipobenito)
[![Latest Version](https://img.shields.io/github/release/thephpleague/container.svg?style=flat-square)](https://github.com/thephpleague/container/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/thephpleague/container/master.svg?style=flat-square)](https://travis-ci.org/thephpleague/container)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/container.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/container/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/container.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/container)
[![Total Downloads](https://img.shields.io/packagist/dt/league/container.svg?style=flat-square)](https://packagist.org/packages/league/container)This package is compliant with [PSR-1], [PSR-2], [PSR-12], [PSR-4] and [PSR-11]. If you notice compliance oversights, please send a patch via pull request.
[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-12]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-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## Install
Via Composer
``` bash
$ composer require league/container
```## Requirements
The following versions of PHP are supported by this version.
* PHP 7.2
* PHP 7.3
* PHP 7.4## Documentation
Container has [full documentation](http://container.thephpleague.com), powered by [Jekyll](http://jekyllrb.com/).
Contribute to this documentation in the [docs/](https://github.com/thephpleague/container/tree/master/docs) sub-directory.
## Testing
Testing includes PHPUnit and PHPStan (Level 7).
``` bash
$ composer test
```## Contributing
Please see [CONTRIBUTING](https://github.com/thephpleague/container/blob/master/CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Phil Bennett](https://github.com/philipobenito)
- [All Contributors](https://github.com/thephpleague/container/contributors)
- `Orno\Di` contributors## License
The MIT License (MIT). Please see [License File](https://github.com/thephpleague/container/blob/master/LICENSE.md) for more information.