PackageTrack
Sign in Get early access

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 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 60 of 71
  1. v3.2.6 06 May 2026
    Release notes

    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, ServiceDefinition and friends
    • ContainerPanel – Tracy panel template rewritten with n:attributes for noticeably cleaner Latte syntax
    • PHPStan-clean codebase – wide-ranging cleanup across DI internals so the whole tree passes strict analysis
    • Richer PHPDoc – improved @param, @return and class descriptions across Compiler, 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
    Open source →
  2. v3.2.5 14 Aug 2025
    Release notes
    • support for PHP 8.5
    • optimized global function calls
    • used generics for Container::createInstance() (#323)
    Open source →
  3. v3.2.4 10 Jan 2025
    Release notes
    • 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
    Open source →
  4. v3.2.3 05 Oct 2024
    Release notes
    • support for PHP 8.4
    • md5 replaced with xxHash
    • fixed ReflectionParameter::getDefaultValue() error #315
    Open source →
  5. v3.2.2 16 May 2024
    Release notes
    • 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)"
    Open source →
  6. v3.2.1 12 Feb 2024
    Release notes
    • PhpGenerator: DTO and DateTime are not suspicious objects #306 #308
    • NeonAdapter: fixed to string conversion #307
    • Compiler::loadDefinitionsFromConfig() expands parameters (after 3399312)
    Open source →
  7. v3.2.0 06 Feb 2024
    Release notes
    • 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
    Open source →
  8. v3.1.10 06 Feb 2024
    Release notes
    • 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
    Open source →
  9. v3.1.8 03 Nov 2023
    Release notes
    • 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 @self to setup immediately
    • Option 'class' is allowed again
    Open source →
  10. v3.1.3 05 Aug 2023

    Nothing published for this version

  11. v3.1.2 13 Mar 2023

    Nothing published for this version

  12. v3.1.1 16 Jan 2023

    Nothing published for this version

  13. v3.1.0 14 Dec 2022

    Nothing published for this version

  14. v3.0.17 21 Sep 2023
    Release notes
    • Resolver: added support for named variadics #289
    • Resolver: tolerates nullable types when resolving
    • Container: added initialize()
    Open source →
  15. v3.0.16 13 Mar 2023

    Nothing published for this version

  16. v3.0.15 16 Jan 2023

    Nothing published for this version

  17. v3.0.14 02 Nov 2022

    Nothing published for this version

  18. v3.0.13 10 Mar 2022

    Nothing published for this version

  19. v3.0.12 15 Dec 2021

    Nothing published for this version

  20. v3.0.11 26 Oct 2021

    Nothing published for this version

  21. v3.0.10 29 Sep 2021

    Nothing published for this version

  22. v3.0.9 31 Aug 2021

    Nothing published for this version

  23. v3.0.8 02 Mar 2021

    Nothing published for this version

  24. v3.0.7 30 Dec 2020

    Nothing published for this version

  25. v3.0.6 25 Nov 2020

    Nothing published for this version

  26. v3.0.5 13 Aug 2020

    Nothing published for this version

  27. v3.0.4 14 May 2020

    Nothing published for this version

  28. v3.0.3 20 Jan 2020

    Nothing published for this version

  29. v3.0.2 17 Dec 2019

    Nothing published for this version

  30. v3.0.1 07 Aug 2019

    Nothing published for this version

  31. v3.0.0 03 Apr 2019

    Nothing published for this version

  32. v2.4.17 06 Nov 2020

    Nothing published for this version

  33. v2.4.16 19 Nov 2019

    Nothing published for this version

  34. v2.4.15 30 Jan 2019

    Nothing published for this version

  35. v2.4.14 17 Sep 2018

    Nothing published for this version

  36. v2.4.13 11 Jun 2018

    Nothing published for this version

  37. v2.4.12 26 Apr 2018

    Nothing published for this version

  38. v2.4.11 28 Mar 2018

    Nothing published for this version

  39. v2.4.10 31 Aug 2017

    Nothing published for this version

  40. v2.4.9 11 Jul 2017

    Nothing published for this version

  41. v2.4.8 14 Mar 2017

    Nothing published for this version

  42. v2.4.7 04 Feb 2017

    Nothing published for this version

  43. v2.4.6 15 Jan 2017

    Nothing published for this version

  44. v2.4.5 23 Dec 2016

    Nothing published for this version

  45. v2.4.4 26 Oct 2016

    Nothing published for this version

  46. v2.4.3 21 Sep 2016

    Nothing published for this version

  47. v2.4.2 30 Jul 2016

    Nothing published for this version

  48. v2.4.1 07 Jul 2016

    Nothing published for this version

  49. v2.4.0 27 Jun 2016

    Nothing published for this version

  50. v2.3.14 17 Mar 2017

    Nothing published for this version

  51. v2.3.13 12 Dec 2016

    Nothing published for this version

  52. v2.3.12 06 Jul 2016

    Nothing published for this version

  53. v2.3.11 17 Jun 2016

    Nothing published for this version

  54. v2.3.10 11 Mar 2016

    Nothing published for this version

  55. v2.3.9 08 Feb 2016

    Nothing published for this version

  56. v2.3.8 20 Jan 2016

    Nothing published for this version

  57. v2.3.7 13 Nov 2015

    Nothing published for this version

  58. v2.3.6 14 Sep 2015

    Nothing published for this version

  59. v2.3.5 13 Jul 2015

    Nothing published for this version

  60. v2.3.4 17 Jun 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive