rummykhan / laravel-collection
A standalone version of laravel collection to use in core php or any framework.
Installs: 130
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-12-27 06:30:19 UTC
README
This is a standalone version of laravel/collection
to use in any php project.
Motivation
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.
Install using composer
composer require rummykhan/laravel-collection
How To
To create a collection object you can use either of two ways.
- Using
RummyKhan\Collection\Collection::make($arr)
- Using laravel
collect($arr)
method.
Complete documentation
To view the full documentation please visit https://laravel.com/docs/5.6/collections