league/container
League/Container is a fast, lightweight, PSR-11 compliant dependency injection container for PHP. It offers constructor autowiring, service providers, inflectors, and lazy loading out of the box, requires no configuration, and supports PHP 8.3, 8.4, and 8.5.
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 [email protected] 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?