Nette DI

Dependency Injection is a design pattern that will fundamentally change the way you look at code and development. It opens the way to a world of cleanly designed and sustainable applications.

  • What is Dependency Injection?
  • Global State & Singletons
  • Passing Dependencies
  • What is a DI Container?
  • Frequently Asked Questions

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

  • Nette DI Container
  • Configuration
  • Service Definitions
  • Autowiring
  • Generated Factories
  • Creating Extensions for Nette DI
  • Container Compilation Explained
  1. Documentation
  2. Nette DI
version: 3.x 2.x

Dependency Injection

  • What is DI?
  • Global State & Singletons
  • Passing Dependencies
  • What is a DI Container?
  • Frequently Asked Questions

Nette DI

  • Nette DI Container
  • Configuration
  • Service Definitions
  • Autowiring
  • Generated Factories
  • Creating Extensions for Nette DI
  • Compilation Explained
  • Upgrading
  • Show on GitHub
  • Open preview
  • How to write?
  • changed Jul 8, 2026
  • Backlinks | Broken links
  • All pages
Check our other projects
  • Web Framework component-based MVC
  • Latte the safest & intuitive templates
  • Tester enjoyable unit testing in PHP
  • Tracy debugging tool you will love ♥
  • Dependency Injection challenging container
  • Caching
  • Database layer for PHP
  • Forms greatly facilitates web forms
  • Mail sending emails
  • Neon readable file format
  • PHP Code Generator
  • Schema user data validation
  • Utils collection of useful utilities
  • …list of all packages
Help & Support
  • Forum
  • Discord Nette
  • Release Notes
  • Commits
Learn
  • Documentation
  • Blog
  • API
  • About Nette
Community
  • Partners and sponsors
  • GitHub
  • Componette
  • Hall of Fame
  • Showcase
  • Donate Now
Choose your language
  • English
  • Česky
  • Deutsch
  • Español
  • Français
  • Italiano
  • Magyar
  • Polska
  • Português
  • Română
  • Slovenski
  • Türkçe
  • Ελληνικά
  • Български
  • Русский
  • Українська
  • 日本語
Follow us
Nette Blog Twitter

Hosted on e-infrastructure CESNET. Thank you for your support CESNET association

© 2008, 2026 David Grudl. All rights reserved.   Terms of use ▲ up