PackageTrack
Sign in Get early access

yiisoft/arrays

Yii Array Helper

3.2.1 2.3M downloads/mo #2786 most downloaded on Packagist yiisoft/arrays

What this package is like to depend on

Last release 9 months ago

26 Nov 2025

Ships fairly regularly

a new release about every 10 months

Nearly every release is documented

notes for 8 of 8 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

8 releases · first in 2021

1 release in the last 12 months

see the full history below

Release timeline

8 releases · Feb 2021 to Nov 2025
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 8
  1. 3.2.1 26 Nov 2025
    Release notes
    • Enh #168: Add benchmark, improve ArrayHelper::htmlEncode() performance (@samdark)
    • Enh #169: Bump yiisoft/strings dependency to ^2.6 (@vjik)
    • Enh #171: Improve psalm types in ArrayHelper::group() (@vjik)
    • Enh #173: Add PHP 8.5 support (@vjik)

    Full changelog

    Open source →
    Release notes
    • Enh #168: Add benchmark, improve ArrayHelper::htmlEncode() performance (@samdark)
    • Enh #169: Bump yiisoft/strings dependency to ^2.6 (@vjik)
    • Enh #171: Improve psalm types in ArrayHelper::group() (@vjik)
    • Enh #173: Add PHP 8.5 support (@vjik)
    Open source →
  2. 3.2.0 01 Feb 2025
    Release notes
    • Chg #167: Change PHP constraint in composer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 (@vjik)
    • Enh #156: Improve psalm types in ArrayHelper::getObjectVars(), ArrayableInterface, ArrayableTrait and
      ArrayAccessTrait (@vjik)
    • Enh #165: Raise the minimum PHP version to 8.1 (@vjik)
    • Bug #165: Explicitly mark nullable parameters (@vjik)
    • Bug #166: ArrayHelper::getValue() returns default value on empty array key (@vjik)
    • Bug #166: ArrayHelper::keyExists() returns false on empty array key (@vjik)
    Open source →
    Release notes
    • Chg #167: Change PHP constraint in composer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 (@vjik)
    • Enh #156: Improve psalm types in ArrayHelper::getObjectVars(), ArrayableInterface, ArrayableTrait and ArrayAccessTrait (@vjik)
    • Enh #165: Raise the minimum PHP version to 8.1 (@vjik)
    • Bug #165: Explicitly mark nullable parameters (@vjik)
    • Bug #166: ArrayHelper::getValue() returns default value on empty array key (@vjik)
    • Bug #166: ArrayHelper::keyExists() returns false on empty array key (@vjik)
    Open source →
  3. 3.1.0 04 Apr 2024
    Release notes
    • New #139: Add ArrayHelper::parametrizedMerge() method that allows to merge two or more arrays recursively with
      specified depth (@vjik)
    • New #149, #152: Add ArrayrHelper::renameKey() (@vjik, @Tigrov)
    • Enh #140: Remove null from return type of ArrayHelper::getObjectVars() method (@Tigrov)
    • Enh #152: Minor ArrayableTrait refactoring (@Tigrov)
    Open source →
    Release notes
    • New #139: Add ArrayHelper::parametrizedMerge() method that allows to merge two or more arrays recursively with specified depth (@vjik)
    • New #149, #152: Add ArrayrHelper::renameKey() (@vjik, @Tigrov)
    • Enh #140: Remove null from return type of ArrayHelper::getObjectVars() method (@Tigrov)
    • Enh #152: Minor ArrayableTrait refactoring (@Tigrov)
    Open source →
  4. 3.0.0 12 Jan 2023
    Release notes
    • Enh #115: Raise required PHP version to ^8.0, move union type hints from annotations
      to methods' signatures (@xepozz, @vjik)
    • Enh #122: Add getters' support (keys like "getMyProperty()") to ArrayHelper (@vjik)
    • Bug #103: ArrayableTrait::toArray() returned an invalid result when no fields were specified (@ganigeorgiev)
    Open source →
    Release notes
    • Enh #115: Raise required PHP version to ^8.0, move union type hints from annotations to methods' signatures (@xepozz, @vjik)
    • Enh #122: Add getters' support (keys like "getMyProperty()") to ArrayHelper (@vjik)
    • Bug #103: ArrayableTrait::toArray() returned an invalid result when no fields were specified (@ganigeorgiev)
    • New #137: Add methods ArrayHelper::addValue() and ArrayHelper::addValueByPath() (@Kutuzovska)
    Open source →
  5. 2.1.0 20 Aug 2022
    Release notes
    Open source →
    Release notes
    • Enh #111: Add support for escaping delimiter while parsing path (@arogachev, @vjik)
    Open source →
  6. 2.0.0 23 Oct 2021
    Release notes
    • New #91: Add ArrayHelper::group() that groups the array according to a specified key (@sagittaracc)
    • New #96: Add support for iterable objects to ArrayHelper::map(), ArrayHelper::index(), ArrayHelper::group(), ArrayHelper::htmlEncode() and ArrayHelper::htmlDecode (@vjik)
    • Chg #99: Finalize ArrayHelper and ArraySorter (@vjik)
    • Bug #101: Fix incorrect default value returned from ArrayHelper::getValue() when key does not exist and default is array (@vjik)
    Open source →
  7. 1.0.1 10 Feb 2021
    Release notes
    • Chg: Update yiisoft/strings dependency (@samdark)
    Open source →
  8. 1.0.0 02 Feb 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