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

Iterable Functions Laravel Package

bentools/iterable-functions

Small PHP utility package offering array-like helpers for any iterable (arrays, Traversable, generators): iterable_to_array/to_traversable, map, merge, reduce, filter, values, and chunk—write iterable-agnostic code without TypeError surprises.

View on GitHub
Deep Wiki
Context7
2.1.2

What's Changed

New Contributors

Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.1.1...2.1.2

2.1.1

What's Changed

Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.1...2.1.1

2.0

Say hello to this new version! 👋

  • Drop PHP5 support (BC break) - #12
  • Functions are now namespaced (BC break) - #13
  • Removed is_iterable function, as it's now PHP7+ native
  • Removed withMap() and withFilter() methods of fluent interface in favor of map() and filter() - #9 (BC break)
  • Added iterable_values() function - #33
  • Allow objects as keys - #24
  • Add support for default filter function - #25

A huge thanks to @simPod for his contributions! 🙏

2.0-beta
1.4
  • Introduced iterable_reduce() function. Thanks @simPod
1.3

Changelog:

  • Deprecated methods withMap() and withFilter() in favor of map(), filter().
1.2.2

Minor changes: improved PHPDoc for better auto-completion support - @mwijngaard

1.2.1

@simPod brought iterable_to_array closer to the native iterator_to_array function, by adding an optional $use_keys argument.

New function signature:

iterable_to_array ( iterable $iterable [, bool $use_keys = TRUE ] ) : array

1.2
1.1
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console