phootwork/collection
phootwork/collection is a lightweight PHP collection library providing convenient data structures and fluent helpers to work with arrays and iterables. Includes common operations like map/filter/reduce, searching, sorting, and easy conversion between collection types.
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.2.3
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.2.2
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.2.1
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.2.0
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.1.0
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.0.1
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v3.0
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v2.1.3
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v2.1.2
For changes in this release please see https://github.com/phootwork/phootwork/releases/tag/refs/tags/v2.0.1
Set (thanks to @zquintana )some() and every()map()Better compatibility with phootwork\lang.
CollectionUtils::toArrayRecursive() to bring back recursively exporting objects as arrayCollectionUtils::fromArray() as it was deprecated. Use CollectionUtils::fromCollection() instead.Make list methods available to Set
No more deep toArray() that is domain logic on the userland side. Just return one-level array.
find() method to all collectionsfindLast() method to all collectionsfindAll() method to all collectionsfindIndex() method to listsfindLastIndex() method to listsfindKey() method to mapfindLastKey() method to mapMap::getKey() when values are objectsCollectionUtilsCollectionUtils::toMap()CollectionUtils::toList()contains() methodMap.get() as a return value for non-existing keystoArray() now also applies the toArray() method on objects within collectionsCollectionUtils to deeply create collections from an arrayFirst version
How can I help you explore Laravel packages today?