The release of Symfony 2.0 in 2011 is probably the single most important step towards the adoption of the dependency injection design pattern in the world of PHP. By providing a real use-case for this pattern in a recognized and popular PHP framework, it was the reason for many developers to start adopting dependency injection in their projects.

In 2018, the usage of dependency injection in PHP is widespread: almost all the modern PHP frameworks provides a DI container and the PHP Framework Interoperability group even created a standard on the subject.

In this article and in its follow-up, I…

Titouan Galopin

Product Manager at Symfony (insight.symfony.com) | Former Technical Product Lead en-marche.fr | Symfony (certified), node, React, Typescript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store