This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.
Container alternatives and similar libraries
Based on the "Dependency Injection" category.
Alternatively, view Container alternatives based on common mentions on social networks and blogs.
8.2 8.6 L3 Container VS Symfony DIThe DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.
5.8 8.0 L4 Container VS Nette DI💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features.
3.3 0.0 L5 Container VS AcclimateAdapters for PHP framework containers to an interoperable interface
1.3 0.0 Container VS ClanCats Container🚀 PHP Service Container with fast and cachable dependency injection.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Container or a related project?
Container (Dependency Injection)
$ composer require league/container
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
Contribute to this documentation in the docs/ sub-directory.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
*Note that all licence references and agreements mentioned in the Container README section above are relevant to that project's source code only.