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

Array Functions Laravel Package

spatie/array-functions

Handy PHP array utilities from Spatie. Adds small, focused functions in the Spatie namespace (e.g., array_rand_value to pick a random value) to complement built-in array helpers. Install via Composer and use directly in your code.

View on GitHub
Deep Wiki
Context7
1.9.3
  • test enhancement and integrate GitHub Actions (#22)
1.9.2
  • optimize array_rand_weighted (#19)
1.9.1
  • fix division by zero in array_split (#16)
1.9.0
  • performance improvements
  • drop support for PHP 7.1 and below
1.8.0

Added

  • array_flatten function
1.7.0

Added

  • array_merge_values function
1.6.0

Added

  • array_split function
1.5.0

Added

  • array_split_filter function
1.4.0

Added

  • array_rand_value now can return multiple values (like array_rand)
1.3.0

Added

  • array_rand_weighted function
  • array_keys_exist function
1.2.0

Changed

  • Various fixes & improvements
1.1.0

Added

  • values_in_array function
1.0.0

Added

  • Everything, 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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata