swisnl/illuminate-collections

Metapackage to import illuminate/collections, with fallback to illuminate/support for older PHP/Laravel versions.

8.0.0 2020-11-06 12:23 UTC

README

Latest Version on Packagist Software License Buy us a tree Total Downloads Made by SWIS

Import Laravel's Collections into non-Laravel packages easily, without needing to require the entire illuminate\support package, while also supporting older PHP/Laravel versions. (Why not pull illuminate\support in framework-agnostic packages)

It just installs illuminate/support on PHP < 7.3 or Laravel < 8 and illuminate/collections on PHP >= 7.3 or Laravel >= 8 and uses the same major versioning.

This package will get major version tags up to and including the next Laravel LTS, which will probably be Laravel 9 in January 2022!

Install

Via Composer

$ composer require swisnl/illuminate-collections

Usage

Simply use Illuminate\Support\Collection as you normally would!

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email security@swis.nl instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

SWIS ❤️ Open Source

SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.