wpml/collect

Collect - Illuminate Collections as a separate package.
412,489
Install
composer require wpml/collect
Latest Version:v5.8.21
PHP:>=5.5.9
License:MIT
Last Updated:Jun 3, 2026
Links: GitHub  ·  Packagist
Maintainer: andreasciamanna

Codeship Status for tightenco/collect

Collect - Illuminate Collections

Import Laravel's Collections into non-Laravel packages easily, without needing to require the entire Illuminate\Support package. (Why not pull Illuminate\Support in framework-agnostic packages)

Written by Taylor Otwell as a part of Laravel's Illuminate/Support package, Collect is just the code from Support needed in order to use Collections on their own.

Lovingly split by Matt Stauffer for Tighten Co., with a kick in the butt to finally do it from @assertchris.

FAQ

  • Will this develop independently from Illuminate's Collections?
    No. Right now it's split manually, but the goal is for it shortly to be split automatically to keep it in sync with Laravel's Collections, even mirroring the release numbers.
  • Why isn't this just under the Illuminate namespace?
    Because that would require adding a lot of complexity and duplication to Illuminate\Support's internal structure. One day Taylor may choose to do that, but right now he hasn't and doesn't have any immediate plans to do so. If he does, we'll deprecate this package and point to the core version.
  • Why not just use an array?
    What a great question. Tightenite Adam Wathan has a book about that.

Related Packages

lorisleiva/lody

Load files and classes as lazy collections in Laravel.

8,463,985 95
propaganistas/laravel-helper-macros

Useful helpers and macros for Laravel 5.

63 16
gamez/typed-collection

Type-safe collections based on Laravel Collections

372,175 45
isswp101/collection

This package allows you to update laravel collections by query

6 1
webfactorybulgaria/nestablecollection

A Laravel Package that extends Collection to handle unlimited nested items follo...

509 0