Downloads
Stars
Version
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.
With Composer:
composer require tightenco/collect
tightenco/collect
instead of illuminate/collect
?Collection
may be extracted from illuminate/support
to 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.