Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Arrays Laravel Package

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.

View on GitHub
Deep Wiki
Context7
3.2.1
  • 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)
3.2.0
  • 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)
3.1.0
  • 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)
3.0.0
  • 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)
2.1.0
  • Enh #111: Add support for escaping delimiter while parsing path (@arogachev, @vjik)
3.2.2
  • Enh #175: Explicitly import functions and constants in "use" section (@mspirkov)
  • Enh #176: Remove unnecessary files from Composer package (@mspirkov)
2.0.0
  • 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)
1.0.1
  • Chg: Update yiisoft/strings dependency (@samdark)
1.0.0
  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor