no-framework-tutorial/8-dependency-injector.md
2025-07-08 23:01:49 +02:00

508 B

<< previous

Dependency Injector

A dependency injector resolves the dependencies of your class and makes sure that the correct objects are injected when the class is instantiated.

My favorite injector is Auryn, so install rdlowrey/auryn with composer or use one of the alternatives below:

Pimple, Orno DI, PHP-DI

to be continued...