Weave 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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels