3 ms·
DI found it's way into PHP pretty early thanks to Java devs porting it over I suspect. It's one of the pleasantries I enjoyed about the ecosystem around PHP. It
by ehnto 3y ago
DI found it's way into PHP pretty early thanks to Java devs porting it over I suspect. It's one of the pleasantries I enjoyed about the ecosystem around PHP. It has a blend of good engineering and pragmatism thanks to the proliferation of a few good patterns in popular frameworks. I suspect the focus on software patterns in PHP was a knee jerk reaction to the unstructured chaos of the early PHP ecosystem.