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

Collection Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v3.2.3
v3.2.2
v3.2.1
v3.2.0
v3.1.0
v3.0.1
v3.0
v2.1.3
v2.1.2
v2.0.1
v2.0
v2.0-alpha2
v1.6.1
  • Bugfix: Strict element checking in Set (thanks to @zquintana )
v1.6.0
  • Added: some() and every()
v1.5.0
  • Changed: Minimum PHP version 5.6
  • Fixed: Queue and Stack were incompatible with map()
v1.4.1

Better compatibility with phootwork\lang.

v1.4
  • Added: CollectionUtils::toArrayRecursive() to bring back recursively exporting objects as array
  • Removed: CollectionUtils::fromArray() as it was deprecated. Use CollectionUtils::fromCollection() instead.
v1.3.2

Make list methods available to Set

v1.3.1

No more deep toArray() that is domain logic on the userland side. Just return one-level array.

v1.3
  • Added find() method to all collections
  • Added findLast() method to all collections
  • Added findAll() method to all collections
  • Added findIndex() method to lists
  • Added findLastIndex() method to lists
  • Added findKey() method to map
  • Added findLastKey() method to map
  • Bugfix Map::getKey() when values are objects
v1.2.2
  • Better and more API comments
  • Fixed: Bugfixes to CollectionUtils
  • Added: CollectionUtils::toMap()
  • Added: CollectionUtils::toList()
v1.2.1
  • Add strict typing to contains() method
v1.2
  • Added default parameter for Map.get() as a return value for non-existing keys
v1.1.1
  • Bugfix for toArray() now also applies the toArray() method on objects within collections
v1.1
  • Added CollectionUtils to deeply create collections from an array
v1.0

First version

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport