The PHP podcast where everyone has a seat.

61: Dependency Injection & PSR-11
Panelists:
Stephan Hochdörfer
Stephan Hochdörfer
David Stockton
David Stockton
David Négrier
David Négrier
Matthias Noback
Matthias Noback
April 14 2017

Dependency Injection has been a design principle that the PHP community has embraced more fully than a lot of other programming communities. There's even an official PHP-FIG standard being discussed ca

What does dependency injection give us?

  • Flexibility
  • Avoids tight coupling
  • Allows component re-use
  • Provides separation of concerns
  • Makes objects more testable
  • Provides inversion of control

How do we implement dependency injection