pragmarx/ia-collection
Laravel Illuminate Agnostic Collection
Maintainers
Requires
- php: >=7.0
- nesbot/carbon: ^1.26 || ^2.00
- ramsey/uuid: ~3.7|~4.0
- symfony/var-dumper: ~3.3|~4.0|~5.0|^6.0|^7.0
- voku/portable-ascii: ^1.4|^2.0
Requires (Dev)
- mockery/mockery: ~1.0
- moontoast/math: ^1.1
- phpunit/phpunit: ~6.0|~7.0|~9.0
- squizlabs/php_codesniffer: ^2.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT c88a4ca6842fbaed57ac394ecff7ee3e7d27d15e
- Antonio Carlos Ribeiro <acr.woop@antoniocarlosribeiro.com>
README
👁 Latest Stable Version
👁 License
👁 Code Quality
👁 Build
👁 Downloads
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 acr@antoniocarlosribeiro.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
