Purpose of the Dependecy Injection (DI) is to free classes from the responsibility for obtaining objects that they need for its operation (these objects are called services). To pass them these services on their instantiation instead.
Nette DI is one of the most interesting part of framework. It is compiled DI container, extremely fast and easy to configure.
Let's have an application for sending newsletters. The code is maximally simplified and is available on the GitHub.
We have the object representing email:
Nette DI alternatives and related libraries
Based on the "Dependency Injection" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Nette DI or a related project?
Nette DI RecommendationsThere are no recommendations yet. Be the first to promote Nette DI!
Have you used Nette DI? Share your experience. Write a short recommendation and Nette DI, you and your project will be promoted on Awesome PHP.
Recommend Nette DI
Recently added Nette DI resources
Be the first to add one!