nette/di
💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.
v3.2.6
42M downloads/mo
#1032 most downloaded on Packagist
nette/di
What this package is like to depend on
Last release 3 months ago
06 May 2026
Ships fairly regularly
a new release about every 3 months
Rarely documented
notes for 10 of 71 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
71 releases · first in 2014
1 release in the last 12 months
see the full history below
Release timeline
71 releases · May 2014 to May 2026Releases
latest 60 of 71-
v3.2.606 May 2026Release notes
Open source →A maintenance release laser-focused on type safety. Static analysis is now mandatory in CI, the codebase ships richer native and PHPDoc types, and the Tracy DI panel got a cleaner Latte rewrite. No behavioral changes – just a sturdier foundation for everything built on top.
- Native types – tightened parameter and return types across
Compiler,ContainerLoader,ServiceDefinitionand friends - ContainerPanel – Tracy panel template rewritten with
n:attributesfor noticeably cleaner Latte syntax - PHPStan-clean codebase – wide-ranging cleanup across DI internals so the whole tree passes strict analysis
- Richer PHPDoc – improved
@param,@returnand class descriptions acrossCompiler,Container,ContainerBuilder,Resolver,Helpers, definitions and extensions, giving IDEs and static analyzers far more to work with - Better generic types – sharpened PHPDoc generics in autowiring, container builder, definitions and resolver
- Native types – tightened parameter and return types across
-
v3.2.514 Aug 2025Release notes
Open source →- support for PHP 8.5
- optimized global function calls
- used generics for Container::createInstance() (#323)
-
v3.2.410 Jan 2025Release notes
Open source →- implemented support for lazy services in PHP 8.4
- Resolver: restrictions for named parameters have been removed
- Resolver: triggers error when reference is called with arguments
-
v3.2.305 Oct 2024Release notes
Open source →- support for PHP 8.4
- md5 replaced with xxHash
- fixed
ReflectionParameter::getDefaultValue()error #315
-
v3.2.216 May 2024Release notes
Open source →- Container: refactoring
- NeonAdapter: resolving of constants and enums moved here from
filterArguments()(BC break) Container::getServiceType()ignores dynamically added services (BC break)Container::getByType()fixed cooperation with dynamic factory #314- Resolver: better exception when
normalizeEntity()fails due to service replacement - Revert "LocatorDefinition: deprecated support for create($name) method (BC break)"
-
v3.2.112 Feb 2024 -
v3.2.006 Feb 2024Release notes
Open source →- requires PHP 8.1
- uses PHP 8.1 features
- Sensitive parameters are put in markers /sensitive{/ and /}/
- added support for first-class callable syntax in NEON
- SearchExtension: added 'exclude -> files'
- ServicesExtension: locator supports Statement (#294)
changes
- Resolver: only optional parameters are autowired with default value (BC break)
- generated accessors/factories must have defined return type (BC break)
- %parameters% is deprecated (BC break)
- LocatorDefinition: deprecated support for
create($name)method (BC break) - PhpGenerator: warns about suspicious dumping of objects
-
v3.1.1006 Feb 2024Release notes
Open source →- ParametersExtension: exports both statements and dynamic parameters, preloads only the latter
- allowed %foo.bar% expansion of Statement
- SearchExtension: also searches for accessors
Resolver::autowireArgument()fixed handling of new-initializer with typehint #302- InjectExtension: added type checking
NeonAdapter::removeUnderscoreVisitor()checks if key doesn't exist
-
v3.1.803 Nov 2023Release notes
Open source →- ParametersExtension, Container: redesigned way of exporting dynamic parameters via
getParameter()#291 Helpers::expand()allow concatenation of Statements #288- more self explanatory message for factory and service mismatch (closes #199) (#284)
- Support list
<Type>syntax for autowiring a collection of services (#293) - Resolver: added support for named variadics #289
- ParametersExtension: better validation exception for dynamic parameters
- ContainerPanel: refactoring
- Container: detects circular reference for parameters
- ServiceDefinition: prepends
@selfto setup immediately - Option 'class' is allowed again
- ParametersExtension, Container: redesigned way of exporting dynamic parameters via
-
v3.1.305 Aug 2023Nothing published for this version
-
v3.1.213 Mar 2023Nothing published for this version
-
v3.1.116 Jan 2023Nothing published for this version
-
v3.1.014 Dec 2022Nothing published for this version
-
v3.0.1721 Sep 2023Release notes
Open source →- Resolver: added support for named variadics #289
- Resolver: tolerates nullable types when resolving
- Container: added
initialize()
-
v3.0.1613 Mar 2023Nothing published for this version
-
v3.0.1516 Jan 2023Nothing published for this version
-
v3.0.1402 Nov 2022Nothing published for this version
-
v3.0.1310 Mar 2022Nothing published for this version
-
v3.0.1215 Dec 2021Nothing published for this version
-
v3.0.1126 Oct 2021Nothing published for this version
-
v3.0.1029 Sep 2021Nothing published for this version
-
v3.0.931 Aug 2021Nothing published for this version
-
v3.0.802 Mar 2021Nothing published for this version
-
v3.0.730 Dec 2020Nothing published for this version
-
v3.0.625 Nov 2020Nothing published for this version
-
v3.0.513 Aug 2020Nothing published for this version
-
v3.0.414 May 2020Nothing published for this version
-
v3.0.320 Jan 2020Nothing published for this version
-
v3.0.217 Dec 2019Nothing published for this version
-
v3.0.107 Aug 2019Nothing published for this version
-
v3.0.003 Apr 2019Nothing published for this version
-
v2.4.1706 Nov 2020Nothing published for this version
-
v2.4.1619 Nov 2019Nothing published for this version
-
v2.4.1530 Jan 2019Nothing published for this version
-
v2.4.1417 Sep 2018Nothing published for this version
-
v2.4.1311 Jun 2018Nothing published for this version
-
v2.4.1226 Apr 2018Nothing published for this version
-
v2.4.1128 Mar 2018Nothing published for this version
-
v2.4.1031 Aug 2017Nothing published for this version
-
v2.4.911 Jul 2017Nothing published for this version
-
v2.4.814 Mar 2017Nothing published for this version
-
v2.4.704 Feb 2017Nothing published for this version
-
v2.4.615 Jan 2017Nothing published for this version
-
v2.4.523 Dec 2016Nothing published for this version
-
v2.4.426 Oct 2016Nothing published for this version
-
v2.4.321 Sep 2016Nothing published for this version
-
v2.4.230 Jul 2016Nothing published for this version
-
v2.4.107 Jul 2016Nothing published for this version
-
v2.4.027 Jun 2016Nothing published for this version
-
v2.3.1417 Mar 2017Nothing published for this version
-
v2.3.1312 Dec 2016Nothing published for this version
-
v2.3.1206 Jul 2016Nothing published for this version
-
v2.3.1117 Jun 2016Nothing published for this version
-
v2.3.1011 Mar 2016Nothing published for this version
-
v2.3.908 Feb 2016Nothing published for this version
-
v2.3.820 Jan 2016Nothing published for this version
-
v2.3.713 Nov 2015Nothing published for this version
-
v2.3.614 Sep 2015Nothing published for this version
-
v2.3.513 Jul 2015Nothing published for this version
-
v2.3.417 Jun 2015Nothing published for this version