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.
Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.2...2.3
Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.1.3...2.2
Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.1.2...2.1.3
Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.1.1...2.1.2
iterable_to_array() by @simPod in https://github.com/bpolaszek/php-iterable-functions/pull/46Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.1...2.1.1
Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.0.1...2.1
Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.0...2.0.1
Say hello to this new version! 👋
is_iterable function, as it's now PHP7+ nativewithMap() and withFilter() methods of fluent interface in favor of map() and filter() - #9 (BC break)iterable_values() function - #33A huge thanks to @simPod for his contributions! 🙏
iterable_reduce() function. Thanks @simPodChangelog:
withMap() and withFilter() in favor of map(), filter().Minor changes: improved PHPDoc for better auto-completion support - @mwijngaard
@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
How can I help you explore Laravel packages today?