LaravelPackages.net
Acme Inc.
Toggle sidebar
pragmarx/ia-collection

Laravel Illuminate Agnostic Collection

3.461.542
47
v7.3.2
About pragmarx/ia-collection

pragmarx/ia-collection is a Laravel package for laravel illuminate agnostic collection. It currently has 47 GitHub stars and 3.461.542 downloads on Packagist (latest version v7.3.2). Install it with composer require pragmarx/ia-collection. Discover more Laravel packages by pragmarx or browse all Laravel packages to compare alternatives.

Last updated

IlluminateAgnostic \ Collection

Latest Stable Version License Code Quality Build Downloads

Coverage StyleCI PHP

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.

Install

Via Composer

$ composer require pragmarx/ia-collection

Usage

use IlluminateAgnostic\Collection\Support\Collection;

return (new Collection([1, 2, 3, 4, 5]))->sum()

// or

return collect([1, 2, 3, 4, 5])->sum()

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Star History Chart