Dependency injection topic

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:

  • constructor injection
  • setter injection
  • interface injection

List Dependency injection repositories

zsm-annotated-services

10
Stars
7
Forks
Watchers

A component to define how dependency injection has to be performed with Zend\ServiceManager via annotations

dagger-android-injection

515
Stars
134
Forks
Watchers

Sample project explains Dependency Injection in Android using dagger-android framework.

Extensions for .NET Core Dependency Injection container that allow to resolve dependencies by key

diyai

6
Stars
1
Forks
Watchers

Dependency Injection in JavaScript/ES6

jasq

6
Stars
0
Forks
Watchers

AMD dependency injector integrated with Jasmine

php-di-container-benchmarks

73
Stars
25
Forks
Watchers

Benchmark for some popular PHP Dependency Injection Containers.

di-builder

31
Stars
6
Forks
Watchers

A library that makes easier the creation of compiled containers using Symfony DI

Instant-Weather

752
Stars
162
Forks
Watchers

An Android weather application implemented using the MVVM pattern, Retrofit2, Dagger Hilt, LiveData, ViewModel, Coroutines, Room, Navigation Components, Data Binding and some other libraries from the...

nex

34
Stars
2
Forks
Watchers

Aiming to simplify the construction of JSON API service

yue

30
Stars
1
Forks
Watchers

simple demo for nex(https://github.com/lonnng/nex)