php-iterable-functions

Provides functions for iterable variables: iterable_map(, iterable_filter(), iterable_to_array(), ...

MIT License

Downloads
263.3K
Stars
23
Committers
4
php-iterable-functions - 2.3 Latest Release

Published by bpolaszek 5 months ago

php-iterable-functions - 2.2

Published by bpolaszek 7 months ago

php-iterable-functions - 2.1.3

Published by bpolaszek 7 months ago

What's Changed

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

php-iterable-functions - 2.1.2

Published by bpolaszek about 1 year ago

What's Changed

New Contributors

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

php-iterable-functions - 2.1.1

Published by bpolaszek over 1 year ago

What's Changed

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

php-iterable-functions - 2.1

Published by bpolaszek about 2 years ago

What's Changed

New Contributors

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

php-iterable-functions - 2.0.1

Published by bpolaszek over 2 years ago

What's Changed

Full Changelog: https://github.com/bpolaszek/php-iterable-functions/compare/2.0...2.0.1

php-iterable-functions - 2.0 - New major version

Published by bpolaszek over 3 years ago

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! 🙏

php-iterable-functions -

Published by bpolaszek over 3 years ago

php-iterable-functions - Introduce iterable_reduce()

Published by bpolaszek over 4 years ago

  • Introduced iterable_reduce() function. Thanks @simPod
php-iterable-functions -

Published by bpolaszek over 4 years ago

Changelog:

  • Deprecated methods withMap() and withFilter() in favor of map(), filter().
php-iterable-functions - Improved PHPDoc

Published by bpolaszek over 5 years ago

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

php-iterable-functions - `iterable_to_array()` enhancement

Published by bpolaszek over 5 years ago

@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

php-iterable-functions - New functions: iterable_filter(), iterable_map(), iterable()

Published by bpolaszek over 6 years ago

php-iterable-functions - New function iterable_to_traversable()

Published by bpolaszek over 7 years ago

Package Rankings
Top 3.8% on Packagist.org
Badges
Extracted from project README
GitHub Actions Code Coverage
Related Projects