In this tutorial, you will learn how to get started with FireDI! A quick recap, FireDI is a PHP dependency injection library that makes it simple to help you manage dependencies within your classes. If you haven’t quite decided whether you should be using FireDI or not, checkout our page about When Should I Use Dependency Injection?.
Installing FireDI is so easy by simply using composer.
composer require ua1-labs/firedi
That’s It! It’s included in your project and ready to go!
FireDI is simple to use and has a simple API.
$fireDi = new UA1Labs\Fire\Di(); $myClass = $fireDi->get('myClass');