league/container
PSR-11–compliant dependency injection container from The PHP League. Register services, factories and shared instances, then resolve dependencies with autowiring support. Modern PHP (8.3+) with full docs, tests, and MIT license.
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?