PHP Constructor Dependency Injection Container
-
Updated
Mar 20, 2023 - PHP
Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
PHP Constructor Dependency Injection Container
Co-authored-by: mahajur88@gmail.com Co-authored-by: memotiur@gmail.com
Very very simple container example that injects dependency on class constructor
A lightweight MVC PHP framework
Dependency Injection technique for PHP.
This is a minimalistic PHP DI container project with the aim to provide simple but powerfull solution to anyone, who thinks Dipendency Injection (DI) is something usefull.
Library for compiling quanta Psr-11 container factory maps
Flexible management of Symfony resettable services
The application can help you feel how queue can work. You can select what to put into the queue: nothing,just jobs, chain of jobs, batch of jobs. Code of the project can help you understand Laravel's contextual binding of service container, dependency injection, how to realize polymorphism conception.
Simple PSR-11 DI Container by Atom Framework
Standalone lightweight dependency injection component
Composer PSR-11 package for Dependency Injection Container
Dependency injection for the XP Framework
Меленький и в тоже время мощный контейнер внедрения зависимостей через публичные свойства
Código ejemplo uso dependencias en PhalconPHP
Drupal 8 custom Contact Us
Created by Martin Fowler
Released January 23, 2004