7.0.0
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.