In this collections blog post, we’ll be listing a collection of dependency injection libraries for PHP. Allowing you to easily create containers for handling DI services in your PHP project. As always, this list is updated regularly. Email over the URL, if you wish to be included.
Dependency Injection
Libraries that implement the dependency injection design pattern.
- Aura.Di – A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.
- Acclimate – A common interface to dependency injection containers and service locators.
- Auryn – A recursive dependency injector.
- Container – Another flexible dependency injection container.
- Disco – A PSR-11 compatible, annotation-based dependency injection container.
- PHP-DI – A dependency injection container that supports autowiring.
- Pimple – A tiny dependency injection container.
- Symfony DI – A dependency injection container component.
Tags: PHP, dependency injection, DI, PHP dependency injection, aura.di, acclimate, auryn, container, disco, php-di, pimple, symfony di
License: license | Image Credits: Unsplash