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
Releases
latest 8-
3.2.126 Nov 2025Release notes
Open source →Release notes
Open source →- Enh #168: Add benchmark, improve
ArrayHelper::htmlEncode()performance (@samdark) - Enh #169: Bump
yiisoft/stringsdependency to^2.6(@vjik) - Enh #171: Improve psalm types in
ArrayHelper::group()(@vjik) - Enh #173: Add PHP 8.5 support (@vjik)
- Enh #168: Add benchmark, improve
-
3.2.001 Feb 2025Release notes
Open source →- Chg #167: Change PHP constraint in
composer.jsonto~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0(@vjik) - Enh #156: Improve psalm types in
ArrayHelper::getObjectVars(),ArrayableInterface,ArrayableTraitand
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)
Release notes
Open source →- Chg #167: Change PHP constraint in
composer.jsonto~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0(@vjik) - Enh #156: Improve psalm types in
ArrayHelper::getObjectVars(),ArrayableInterface,ArrayableTraitandArrayAccessTrait(@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)
- Chg #167: Change PHP constraint in
-
3.1.004 Apr 2024Release notes
Open source →- 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
nullfrom return type ofArrayHelper::getObjectVars()method (@Tigrov) - Enh #152: Minor
ArrayableTraitrefactoring (@Tigrov)
Release notes
Open source →- 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
nullfrom return type ofArrayHelper::getObjectVars()method (@Tigrov) - Enh #152: Minor
ArrayableTraitrefactoring (@Tigrov)
- New #139: Add
-
3.0.012 Jan 2023Release notes
Open source →- 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)
Release notes
Open source →- 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()andArrayHelper::addValueByPath()(@Kutuzovska)
- Enh #115: Raise required PHP version to
-
2.1.020 Aug 2022Release notes
Open source →- Enh #111: Add support for escaping delimiter while parsing path (@arogachev, @vjik)
Release notes
Open source →- Enh #111: Add support for escaping delimiter while parsing path (@arogachev, @vjik)
-
2.0.023 Oct 2021Release notes
Open source →- 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()andArrayHelper::htmlDecode(@vjik) - Chg #99: Finalize
ArrayHelperandArraySorter(@vjik) - Bug #101: Fix incorrect default value returned from
ArrayHelper::getValue()when key does not exist and default is array (@vjik)
- New #91: Add
-
1.0.110 Feb 2021 -
1.0.002 Feb 2021