The PHP podcast where everyone chimes in.

Originally aired on

April 14th, 2017

061: Dependency Injection

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

with

Dependency Injection & PSR-11 Show Summary


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

Developer Shout-Out

Thank you, Matthieu Napoli for your work on PHP-DI & all your other contributions to the community. A $50 Amazon gift card from Zend Training is on its way to you.

Shout-out sponsored by Zend Training

Zend Training

Professional Training for Professional PHP developers


Panelists

Stephan Hochdörfer


David Stockton


David Négrier

  • Mouf, the only framework that does graphical dependency injection (drag'n'drop all the things!)
  • container-interop/service-provider, an attempt to have a framework-agnostic way to put entries in a container


Show Notes Credit

Chris Shaw

Thank you Chris Shaw for authoring the show notes for this episode!

If you'd like to contribute show notes and totally get credit for it, check out the show-notes repo!