league / container
A fast and intuitive dependency injection container.
Fund package maintenance!
philipobenito
Installs: 15 337 465
Dependents: 292
Suggesters: 8
Security: 0
Stars: 683
Watchers: 20
Forks: 75
Open Issues: 6
Requires
- php: ^7.0 || ^8.0
- psr/container: ^1.0.0 || ^2.0.0
Requires (Dev)
- phpunit/phpunit: ^6.0
- roave/security-advisories: dev-master
- scrutinizer/ocular: ^1.8
- squizlabs/php_codesniffer: ^3.5
Provides
Replaces
- orno/di: ~2.0
README
This package is compliant with PSR-1, PSR-2, PSR-4 and PSR-11. If you notice compliance oversights, please send a patch via pull request.
Install
Via Composer
$ composer require league/container
Requirements
The following versions of PHP are supported by this version.
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
Documentation
Container has full documentation, powered by Jekyll.
Contribute to this documentation in the docs/ sub-directory.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email philipobenito@gmail.com instead of using the issue tracker.
Credits
- Phil Bennett
- All Contributors
Orno\Di
contributors
License
The MIT License (MIT). Please see License File for more information.