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:

Code Quality Rank: L4
Monthly Downloads: 483,932
Programming language: PHP
License: BSD 1-Clause License
Tags: Dependency Injection     Nette     Static     Dic     Ioc     Di     Factory     Compiled    

Nette DI alternatives and related libraries

Based on the "Dependency Injection" category

Do you think we are missing an alternative of Nette DI or a related project?

Add another 'Dependency Injection' Library

Nette DI Recommendations

There 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

Do you know of a usefull tutorial, book or news relevant to Nette DI?
Be the first to add one!