zenstruck/collection
A lightweight PHP collection library by Zenstruck offering fluent, immutable-style operations for arrays and iterables. Provides map/filter/reduce, grouping, sorting, slicing, and helpful utilities to work with data sets cleanly in Laravel or standalone PHP.
Iterate, filter and paginate anything - arrays, generators or Doctrine ORM queries - without loading it all into memory.
How can I help you explore Laravel packages today?