Nette Documentation Preview

syntax
Dependency Injection
********************

.[perex]
The `nette/di` package provides an extremely advanced compiled DI container for PHP.

- [What is Dependency Injection? |introduction]
- [What is DI Container? |container]
- [Nette DI Container |nette-container]
- [Configuration |configuration]
- [Service Definitions |services]
- [Autowiring |autowiring]
- [Generated Factories |factory]
- [Passing Dependencies |passing-dependencies]
- [Creating Extensions for Nette DI|extensions]


Installation
------------

Download and install the package using [Composer|/best-practices/composer]:

```shell
composer require nette/di
```

{{composer: nette/di}}

Dependency Injection

The nette/di package provides an extremely advanced compiled DI container for PHP.

Installation

Download and install the package using Composer:

composer require nette/di