A standalone version of laravel collection to use in core php or any framework.
rummykhan/laravel-collection is a Laravel package for a standalone version of laravel collection to use in core php or any framework..
It currently has 1 GitHub stars and 308 downloads on Packagist (latest version 1.0.0).
Install it with composer require rummykhan/laravel-collection.
Discover more Laravel packages by rummykhan
or browse all Laravel packages to compare alternatives.
Last updated
This is a standalone version of laravel/collection to use in any php project.
Since I've been using laravel extensively and later moved to other php
frameworks i.e. Symfony and Yii. There are times when you have to manipulate
arrays extensively and it's too painful without laravel/collection.
So I extracted the laravel/collection for standalone use. Hope it helps.
composer require rummykhan/laravel-collection
To create a collection object you can use either of two ways.
RummyKhan\Collection\Collection::make($arr)collect($arr) method.To view the full documentation please visit https://laravel.com/docs/5.6/collections