tightenco/collect
A standalone port of Laravel’s Illuminate\Support\Collection for non-Laravel projects. Get expressive, chainable, higher-order methods like map, filter, reduce, pluck, groupBy, and more with minimal dependencies—ideal for any PHP app.
tightenco/collect brings Laravel’s powerful Collections API to any PHP project, without requiring the full framework. It provides a fluent, expressive wrapper around arrays and iterable data, making everyday transformations, filtering, and aggregation concise and readable.
Ideal for small apps, libraries, and legacy codebases, it mirrors the familiar Illuminate\Support\Collection experience so you can write functional-style pipelines with confidence.
map, filter, reduce, groupBy, and sortByHow can I help you explore Laravel packages today?