yiisoft/arrays
yiisoft/arrays is a small PHP helper library for working with arrays. It provides safe, convenient methods to get and set values (including nested paths), filter and merge data, and simplify common array operations in Yii and any PHP project.
composer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 (@vjik)ArrayHelper::getObjectVars(), ArrayableInterface, ArrayableTrait and
ArrayAccessTrait (@vjik)ArrayHelper::getValue() returns default value on empty array key (@vjik)ArrayHelper::keyExists() returns false on empty array key (@vjik)ArrayHelper::parametrizedMerge() method that allows to merge two or more arrays recursively with
specified depth (@vjik)ArrayrHelper::renameKey() (@vjik, @Tigrov)null from return type of ArrayHelper::getObjectVars() method (@Tigrov)ArrayableTrait refactoring (@Tigrov)^8.0, move union type hints from annotations
to methods' signatures (@xepozz, @vjik)ArrayHelper (@vjik)ArrayableTrait::toArray() returned an invalid result when no fields were specified (@ganigeorgiev)ArrayHelper::addValue() and ArrayHelper::addValueByPath() (@Kutuzovska)ArrayHelper::group() that groups the array according to a specified key (@sagittaracc)ArrayHelper::map(), ArrayHelper::index(), ArrayHelper::group(),
ArrayHelper::htmlEncode() and ArrayHelper::htmlDecode (@vjik)ArrayHelper and ArraySorter (@vjik)ArrayHelper::getValue() when key does not exist and
default is array (@vjik)yiisoft/strings dependency (@samdark)How can I help you explore Laravel packages today?