Skip to content

Releases: PHP-DI/PHP-DI

7.0.6

02 Nov 10:05
8097948
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 7.0.5...7.0.6

7.0.5

10 Aug 14:58
9ea40a5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 7.0.4...7.0.5

7.0.4

08 Aug 16:00
8ed7946
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.0.3...7.0.4

7.0.3

17 Jun 10:21
d5dad25
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 7.0.2...7.0.3

7.0.2

07 Feb 17:34
5d1a866
Compare
Choose a tag to compare

What's Changed

  • ContainerBuilder: fallback typehints for PhpStorm by @hemberger in #849

Full Changelog: 7.0.1...7.0.2

7.0.1

13 Jan 22:31
1c7f1cc
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 7.0.0...7.0.1

7.0.0

12 Jan 14:09
Compare
Choose a tag to compare

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

08 Jan 19:20
Compare
Choose a tag to compare
7.0.0-rc1 Pre-release
Pre-release

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

09 Apr 16:48
ae0f1b3
Compare
Choose a tag to compare

PHP-DI now requires PHP 7.4 or greater.

Full Changelog: 6.3.5...6.4.0

6.3.5

02 Sep 09:50
b8126d0
Compare
Choose a tag to compare

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