PHP DI Versions Save

The dependency injection container for humans

7.0.6

7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.5...7.0.6

7.0.5

10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.4...7.0.5

7.0.4

10 months ago

What's Changed

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.3...7.0.4

7.0.3

11 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.2...7.0.3

7.0.2

1 year ago

What's Changed

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.1...7.0.2

7.0.1

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/7.0.0...7.0.1

7.0.0

1 year ago

Blog post 👉 https://php-di.org/news/23-php-di-7-0-released.html

PHP-DI 7 is a maturation of v6 to support modern PHP versions and their new features:

  • PHP 8.0 and greater is supported
  • @Inject phpdoc annotations have been replaced by the native PHP attribute #[Inject]
  • PSR-11 2.0 compatibility
  • The codebase and the API exposed are now much more typed (thanks to the new PHP features)

If you are migrating from a 6.x version, check out the detailed migration guide.

The documentation shown on php-di.org is now for the 7.0 version, the 6.x documentation can be found here.

7.0.0-rc1

1 year ago

Release candidate for PHP-DI 7.0 planned for next week.

  • support PHP 8.0 and up
  • #738 support PHP 8 attributes for injections: welcome #[Inject] to replace @Inject!
  • drop support for @Inject used with phpdoc annotations -> only native PHP types are supported now That makes PHP-DI simpler, faster and lighter (no need for the PhpDocReader package)
  • typed everything that can be typed
  • PSR-11 1.2 & 2.0 support

Full migration guide is available here: https://github.com/PHP-DI/PHP-DI/blob/8948ffbc43f3e19c66d908593b6a94b2fc1fe6f6/doc/migration/7.0.md#L17-L16

6.4.0

2 years ago

PHP-DI now requires PHP 7.4 or greater.

  • Improve PHP 8.1 support (#791): switch closure serializer for PHP 8.1 support by @shadowhand and @mnapoli in #808 and #811

Full Changelog: https://github.com/PHP-DI/PHP-DI/compare/6.3.5...6.4.0

6.3.5

2 years ago

#792 Add @template return types for better autocomplete/static analysis by @rdarcy1