yiisoft/definitions
The package provides definition syntax
3.4.1
1.5M downloads/mo
#3992 most downloaded on Packagist
yiisoft/definitions
What this package is like to depend on
Last release 8 months ago
02 Dec 2025
Release timing varies
gaps range from 1 weeks to 1.1 years
Nearly every release is documented
notes for 14 of 14 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
14 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
14 releases · Nov 2021 to Dec 2025
2022
2023
2024
2025
2026
Releases
latest 14-
3.4.102 Dec 2025 -
3.4.002 Mar 2025Release notes
Open source →- Chg #105: Change PHP constraint in
composer.jsonto~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0(@vjik) - Chg #106: Bump minimal required PHP version to 8.1 (@vjik)
- Enh #105: Improve definition validation for readonly properties and properties with asymmetric visibility (@vjik)
- Enh #106: Minor performance optimization: use FQN for PHP functions, remove unnecessary conditions (@vjik)
- Enh #106: Mark readonly properties (@vjik)
- Bug #105: Explicitly mark nullable parameters (@vjik)
Release notes
Open source →- Chg #105: Change PHP constraint in
composer.jsonto~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0(@vjik) - Chg #106: Bump minimal required PHP version to 8.1 (@vjik)
- Enh #105: Improve definition validation for readonly properties and properties with asymmetric visibility (@vjik)
- Enh #106: Minor performance optimization: use FQN for PHP functions, remove unnecessary conditions (@vjik)
- Enh #106: Mark readonly properties (@vjik)
- Bug #105: Explicitly mark nullable parameters (@vjik)
- Chg #105: Change PHP constraint in
-
3.3.116 Dec 2024Release notes
Open source →- Enh #101: Minor performance improvement by removing unnecessary code in
DefinitionStorage(@vjik) - Bug #100: Fix resolving
ParameterDefinitionfor optional parameters with union types (@vjik)
- Enh #101: Minor performance improvement by removing unnecessary code in
-
3.3.016 Mar 2024Release notes
Open source →- New #90: Allow multiple method call in array definition (@vjik)
- Bug #86: Fix crash when intersection types are used (@vjik)
-
3.2.012 Feb 2023Release notes
Open source →Release notes
Open source →- Enh #68: Add ability to use any allowed definitions in
DynamicReferencesArray::from()(@vjik)
- Enh #68: Add ability to use any allowed definitions in
-
3.1.004 Feb 2023Release notes
Open source →Release notes
Open source →- New #67: Add
ArrayDefinitionHelper::merge()method that merge array definitions (@vjik)
- New #67: Add
-
3.0.202 Dec 2022 -
3.0.108 Nov 2022Release notes
Open source →- Bug #53: Fixed error on use in array definition methods that should be work via magic
__call()method (@vjik)
- Bug #53: Fixed error on use in array definition methods that should be work via magic
-
3.0.004 Nov 2022Release notes
Open source →- Chg #49: Change result format of
DefinitionStorage::getBuildStack()method to definition IDs array (@vjik) - Enh #41: Raise minimum PHP version to 8.0 and refactor code (@xepozz, @vjik)
- Enh #44: In methods of array definitions add autowiring and improve variadic arguments support (@vjik)
- Enh #46: In definition validator add a check of method name in array definitions (@vjik)
- Bug #48: Definition validator returns false positive result on empty string (@vjik)
Release notes
Open source →- Chg #49: Change result format of
DefinitionStorage::getBuildStack()method to definition IDs array (@vjik) - Enh #41: Raise minimum PHP version to 8.0 and refactor code (@xepozz, @vjik)
- Enh #44: In methods of array definitions add autowiring and improve variadic arguments support (@vjik)
- Enh #46: In definition validator add a check of method name in array definitions (@vjik)
- Bug #48: Definition validator returns false positive result on empty string (@vjik)
- Chg #49: Change result format of
-
2.1.025 Oct 2022Release notes
Open source →- Enh #43: Add
Reference::optional()method that returnsnullwhen there is no dependency defined in container (@vjik)
- Enh #43: Add
-
2.0.017 Jun 2022Release notes
Open source →- New #37: Make method
DefinitionValidator::validateArrayDefinition()public (@vjik) - Chg #30: Rename method
ArrayDefinition::setReferenceContainer()towithReferenceContainer()and make it immutable (@vjik) - Chg #37: Remove method
ParameterDefinition::isBuiltin()(@vjik)
- New #37: Make method
-
1.0.201 Apr 2022Release notes
Open source →- Bug #32: Throw exception instead of returning default value if optional dependency exists but there is an exception when getting it (@vjik)
- Bug #34: In one of edge cases don't throw exception if container returned result of incorrect type (@vjik)
-
1.0.119 Dec 2021 -
1.0.030 Nov 2021