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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle