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

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.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views