spaceonfire / collection
Framework agnostic PHP collections
Fund package maintenance!
Liberapay
Requires
- php: ^7.2|^8.0
- ext-json: *
- spaceonfire/criteria: ^2.5
- spaceonfire/type: ^2.5
- symfony/polyfill-php73: ^1.22
- webmozart/assert: ^1.6
Requires (Dev)
- roave/security-advisories: dev-latest
- symfony/property-access: ^4.4|^5.0
README
Framework agnostic PHP collections.
Install
Via Composer
$ composer require spaceonfire/collection
Usage
$collection = new spaceonfire\Collection\Collection([0, 1, 2, 3]); //$collection->sum() === 6
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Report issues and send Pull Requests in the main spaceonfire repository. Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Credits
License
The MIT License (MIT). Please see License File for more information.