Package Data | |
---|---|
Maintainer Username: | AntonioCarlosRibeiro |
Maintainer Contact: | acr@antoniocarlosribeiro.com (Antonio Carlos Ribeiro) |
Package Create Date: | 2018-01-30 |
Package Last Update: | 2024-10-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-08 03:06:03 |
Package Statistics | |
---|---|
Total Downloads: | 2,948,679 |
Monthly Downloads: | 33,752 |
Daily Downloads: | 1,631 |
Total Stars: | 47 |
Total Watchers: | 3 |
Total Forks: | 26 |
Total Open Issues: | 3 |
This package is an unmodified extraction of the Laravel's Illuminate\Support\Collection class, including all helpers, repackaged to be agnostic and available to any PHP project.
It has its own namespace (IlluminateAgnostic\Collection), so you can use it even on Laravel apps without risking a namespace conflict.
For docs, please check the Laravel documentation: https://laravel.com/docs/5.5/collections.
Via Composer
$ composer require pragmarx/ia-collection
use IlluminateAgnostic\Collection\Support\Collection;
return (new Collection([1, 2, 3, 4, 5]))->sum()
// or
return collect([1, 2, 3, 4, 5])->sum()
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.