tightenco / collect
Collect - Illuminate Collections as a separate package.
Installs: 18 708 797
Dependents: 473
Suggesters: 6
Security: 0
Stars: 1 505
Watchers: 34
Forks: 110
Open Issues: 5
Requires
- php: ^8.0
- symfony/var-dumper: ^3.4 || ^4.0 || ^5.0 || ^6.0
Requires (Dev)
- mockery/mockery: ^1.0
- nesbot/carbon: ^2.23.0
- phpunit/phpunit: ^8.3
- dev-laravel-9-ongoing
- v9.52.7
- v9.52.6
- v9.52.5
- v9.52.0
- v9.51.0
- v9.50.2
- v9.49.0
- v9.48.0
- v9.47.0
- v9.46.0
- v9.45.1
- v9.44.0
- v9.43.0
- v9.42.2
- v9.41.0
- v9.40.1
- v9.39.0
- v9.38.0
- v9.37.0
- v9.36.4
- v9.35.1
- v9.34.0
- v9.33.0
- v9.32.0
- v9.31.0
- v9.30.1
- 9.29.0
- v9.28.0
- v9.27.0
- v9.26.1
- v9.25.1
- v9.24.0
- v9.23.0
- v9.22.0
- v9.21.0
- v9.20.0
- v9.19.0
- v9.18.0
- v9.17.0
- v9.16.0
- v9.15.0
- v9.14.1
- v9.13.0
- v9.12.2
- v9.11.0
- v9.10.1
- v9.9.0
- v9.8.1
- v9.7.0
- v9.6.0
- v9.5.1
- v9.4.1
- v9.3.0
- v9.2.0
- v9.1.0
- v9.0.2
- v9.0.1
- v9.0.0
- v8.83.27
- v8.83.26
- v8.83.25
- v8.83.23
- v8.83.22
- v8.83.21
- v8.83.20
- v8.83.19
- v8.83.18
- v8.83.17
- v8.83.15
- v8.83.14
- v8.83.13
- v8.83.12
- v8.83.11
- v8.83.10
- v8.83.9
- v8.83.8
- v8.83.7
- v8.83.6
- v8.83.5
- v8.83.2
- v8.83.1
- v8.83.0
- v8.82.0
- v8.81.0
- v8.80.0
- v8.79.0
- v8.78.1
- 8.78.0
- v8.77.1
- v8.76.1
- v8.75.0
- v8.68.0
- v8.34.0
- v8.19.0
- v8.18.1
- v8.17.0
- v8.16.0
- v8.15.0
- v8.14.0
- v8.0.4
- v8.0.0
- v7.26.1
- v7.25.0
- v7.23.3
- v7.22.4
- v7.21.0
- v7.19.1
- v7.15.0
- v7.12.0
- v7.11.0
- v7.10.3
- v7.10.2
- v7.10.1
- v7.10.0
- v7.9.2
- v7.9.1
- v7.9.0
- v7.8.1
- v7.7.1
- v7.6.1
- v7.6.0
- v7.5.2
- v7.5.1
- v7.5.0
- v7.4.0
- v7.3.0
- v7.2.2
- v7.2.1
- v7.2.0
- v7.1.2
- v7.1.1
- v7.1.0
- v7.0.8
- v7.0.7
- v7.0.6
- v7.0.5
- v7.0.3
- v7.0.0
- v6.18.34
- v6.18.33
- v6.18.25
- v6.18.16
- v6.18.15
- v6.18.14
- v6.18.13
- v6.18.12
- v6.18.11
- v6.18.10
- v6.18.9
- v6.18.7
- v6.18.6
- v6.18.5
- v6.18.4
- v6.18.3
- v6.18.1
- v6.17.0
- v6.16.0
- v6.15.0
- v6.14.0
- v6.13.1
- v6.13.0
- v6.12.0
- v6.11.0
- v6.10.0
- v6.9.0
- v6.8.0
- v6.7.0
- v6.6.2
- v6.5.2
- v6.5.1
- v6.5.0
- v6.4.1
- v6.4.0
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.8.38
- v5.8.35
- v5.8.34
- v5.8.33
- v5.8.32
- v5.8.31
- v5.8.30
- v5.8.29
- v5.8.28
- v5.8.27
- v5.8.26
- v5.8.25
- v5.8.24
- v5.8.23
- v5.8.22
- v5.8.21
- v5.8.20
- v5.8.19
- v5.8.18
- v5.8.17
- v5.8.16
- v5.8.15
- v5.8.14
- v5.8.13
- v5.8.12
- v5.8.11
- v5.8.10
- v5.8.9
- v5.8.8
- v5.8.7
- v5.8.6
- v5.8.5
- v5.8.4
- v5.8.3
- v5.8.2
- v5.8.1
- v5.8.0
- v5.7.29
- v5.7.27
- v5.7.26
- v5.7.25
- v5.7.24
- v5.7.23
- v5.7.22
- v5.7.21
- v5.7.20
- v5.7.19
- v5.7.18
- v5.7.17
- v5.7.16
- v5.7.15
- v5.7.14
- v5.7.13
- v5.7.12
- v5.7.11
- v5.7.10
- v5.7.9
- v5.7.8
- v5.7.7
- v5.7.6
- v5.7.5
- v5.7.4
- v5.7.3
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.39
- v5.6.38
- v5.6.37
- v5.6.36
- v5.6.35
- v5.6.34
- v5.6.33
- v5.6.32
- v5.6.31
- v5.6.30
- v5.6.29
- v5.6.28
- v5.6.27
- v5.6.25
- v5.6.24
- v5.6.23
- v5.6.22
- v5.6.21
- v5.6.20
- v5.6.19
- v5.6.18
- v5.6.17
- v5.6.16
- v5.6.15
- v5.6.14
- v5.6.13
- v5.6.12
- v5.6.11
- v5.6.9
- v5.6.8
- v5.6.7
- v5.6.6
- v5.6.5
- v5.6.4
- v5.6.0
- v5.5.49
- v5.5.48
- v5.5.47
- v5.5.46
- v5.5.45
- v5.5.33
- v5.5.32
- v5.5.27
- v5.5.20
- v5.5.16
- v5.5.14
- v5.5.13
- v5.5.9
- v5.5.7
- v5.5.3
- v5.5.2
- v5.4.33
- v5.4.32
- v5.4.31
- v5.4.29
- v5.4.28
- v5.4.27
- v5.4.25
- v5.4.20
- v5.4.18
- v5.4.17
- v5.4.16
- v5.4.14
- v5.4.13
- v5.4.12
- v5.4.10
- v5.4.7
- v5.4.0
- v5.3.29
- v5.3.28
- v5.3.27
- v5.3.23
- v5.3.20
- v5.3.16
- v5.3.12
- v5.3.10
- v5.3.9
- v5.3.7
- v5.3.4
- v5.3.2
- v5.3.0-RC1
- v5.2.43
- v5.2.41
- v5.2.38
- v5.2.36
- v5.2.34
- v5.2.33
- v5.2.32
- v5.2.31
- dev-laravel-8-ongoing
- dev-v8.83.18-changes
- dev-laravel-7-ongoing
- dev-laravel-6-ongoing
- dev-laravel-5.8-ongoing
- dev-mes/testing-no-dumper-for-larbearrr
- dev-laravel-5.5-ongoing
- dev-laravel-5.7-ongoing
- dev-laravel-5.6-ongoing
This package is auto-updated.
Last update: 2024-03-14 14:43:46 UTC
README
Collect - Illuminate Collections
Deprecated: With the separation of Illuminate's Collections package, Collect is no longer necessary 🎉 . We will maintain it for the 8.0 and 9.0 releases of Laravel for the convenience of package maintainers, and will stop mirroring new major versions after 9.0, but keep the existing package here for continued support.
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.
Installation
With Composer:
composer require tightenco/collect
Development
If you are a developer working on Collect and you're tasked with upgrading it to mirror a new version of Laravel, run ./upgrade.sh
from the root directory. You can pass a parameter to target a specific Laravel version (e.g. ./upgrade.sh 5.7.10
) or, if you don't pass a parameter, the script will find the latest tagged release and run against that.
The upgrader will pull down the appropriate source and test files for the specified version of Laravel and then run the tests.
./upgrade.sh
# or
./upgrade.sh 5.7.10
The upgrade script requires the use of
wget
. It's recommended to install homebrew, and runbrew install wget
Testing
Due to a dependency on Carbon, tests won't pass until you've run ./upgrade.sh
at least once locally.
vendor/bin/phpunit
FAQ
- Has this ever, or will it ever, develop independently from Illuminate's Collections? No. Using an upgrade script, it's split automatically with every Laravel release to keep it in sync with Laravel's Collections, even mirroring the release numbers.
- Why is the package
tightenco/collect
instead ofilluminate/collect
? It's not an official Laravel package so we don't want to use the Packagist namespace reserved by Laravel packages.One dayNow thatCollection
may be extracted fromilluminate/support
to a new package. If so, we'll deprecate this package and point to the core version.illuminate/collections
has been released, we're deprecating this package. - Why not just use an array? What a great question. Tighten alum Adam Wathan has a book about that.
License
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.