Collect - Illuminate Collections as a separate package.
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), (*3)
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., (*4)
With Composer:, (*6)
composer require tightenco/collect
Collectionmay be extracted from
illuminate/supportto a new package. If so, we'll deprecate this package and point to the core version.
The Laravel framework is open-sourced software licensed under the MIT license. Collect consists almost entirely of Laravel source code, so maintains the same license., (*7)