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

PHP Collections library

Tests Scrutinizer Code Quality Code Coverage License Latest Stable Version Total Downloads

PHP Collections library which contains ArrayList, Set, Map, Queue & Stack.

Goals

  • Provide collections for php
  • Inspired by java java.util.Collection
  • Functional sugar (map, filter, reduce, ...)

Installation

Installation via composer:

composer require phootwork/collection

Documentation

https://phootwork.github.io/collection

Running tests

This package is a part of the Phootwork library. In order to run the test suite, you have to download the full library.

git clone https://github.com/phootwork/phootwork

Then install the dependencies via composer:

composer install

Now, run the collection test suite:

vendor/bin/phpunit --testsuite collection

If you want to run the whole library tests, simply run:

vendor/bin/phpunit

Contact

Report issues at the github Issue Tracker.

Changelog

Refer to Releases

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