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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai