league/container
league/container is a lightweight PSR-11 dependency injection container for PHP. Define entries, factories, and autowiring-friendly services to manage application dependencies cleanly, with modern PHP support and solid tooling for testing and analysis.
This package is compliant with PER-CS, PSR-4 and PSR-11. If you notice compliance oversights, please send a patch via pull request.
Via Composer
composer require league/container
This version supports the following versions of PHP.
Container has full documentation, powered by Jekyll.
Contribute to this documentation in the docs/ subdirectory.
Testing includes Pest and PHPStan (Level 8).
$ composer test
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email philipobenito@gmail.com instead of using the issue tracker.
Orno\Di contributorsThe MIT Licence (MIT). Please see Licence File for more information.
How can I help you explore Laravel packages today?