PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 14
  1. 3.4.1 02 Dec 2025
    Release notes

    Full changelog

    Open source →
    Release notes
    • Enh #110: Add PHP 8.5 support (@vjik)
    Open source →
  2. 3.4.0 02 Mar 2025
    Release notes
    • Chg #105: Change PHP constraint in composer.json to ~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)
    Open source →
    Release notes
    • Chg #105: Change PHP constraint in composer.json to ~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)
    Open source →
  3. 3.3.1 16 Dec 2024
    Release notes
    • Enh #101: Minor performance improvement by removing unnecessary code in DefinitionStorage (@vjik)
    • Bug #100: Fix resolving ParameterDefinition for optional parameters with union types (@vjik)
    Open source →
    Release notes
    • Enh #101: Minor performance improvement by removing unnecessary code in DefinitionStorage (@vjik)
    • Bug #100: Fix resolving ParameterDefinition for optional parameters with union types (@vjik)
    Open source →
  4. 3.3.0 16 Mar 2024
    Release notes
    • New #90: Allow multiple method call in array definition (@vjik)
    • Bug #86: Fix crash when intersection types are used (@vjik)
    Open source →
    Release notes
    • New #90: Allow multiple method call in array definition (@vjik)
    • Bug #86: Fix crash when intersection types are used (@vjik)
    Open source →
  5. 3.2.0 12 Feb 2023
    Release notes
    • Enh #68: Add ability to use any allowed definitions in DynamicReferencesArray::from() (@vjik)
    Open source →
    Release notes
    • Enh #68: Add ability to use any allowed definitions in DynamicReferencesArray::from() (@vjik)
    Open source →
  6. 3.1.0 04 Feb 2023
    Release notes
    • New #67: Add ArrayDefinitionHelper::merge() method that merge array definitions (@vjik)
    Open source →
    Release notes
    • New #67: Add ArrayDefinitionHelper::merge() method that merge array definitions (@vjik)
    Open source →
  7. 3.0.2 02 Dec 2022
    Release notes
    Open source →
    Release notes
    • Enh #57: Improve validation messages (@xepozz)
    Open source →
  8. 3.0.1 08 Nov 2022
    Release notes
    • Bug #53: Fixed error on use in array definition methods that should be work via magic __call() method (@vjik)
    Open source →
    Release notes
    • Bug #53: Fixed error on use in array definition methods that should be work via magic __call() method (@vjik)
    Open source →
  9. 3.0.0 04 Nov 2022
    Release notes
    • 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)
    Open source →
    Release notes
    • 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)
    Open source →
  10. 2.1.0 25 Oct 2022
    Release notes
    • Enh #43: Add Reference::optional() method that returns null when there is no dependency defined
      in container (@vjik)
    Open source →
    Release notes
    • Enh #43: Add Reference::optional() method that returns null when there is no dependency defined in container (@vjik)
    Open source →
  11. 2.0.0 17 Jun 2022
    Release notes
    • New #37: Make method DefinitionValidator::validateArrayDefinition() public (@vjik)
    • Chg #30: Rename method ArrayDefinition::setReferenceContainer() to withReferenceContainer() and make it immutable (@vjik)
    • Chg #37: Remove method ParameterDefinition::isBuiltin() (@vjik)
    Open source →
  12. 1.0.2 01 Apr 2022
    Release notes
    • 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)
    Open source →
  13. 1.0.1 19 Dec 2021
    Release notes
    • Bug #31: Add support for objects as default parameter values (@vjik)
    Open source →
  14. 1.0.0 30 Nov 2021
    Release notes
    • Initial release.
    Open source →

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