getwarp/collection
Framework-agnostic PHP collections
Maintainers
3.1.2
2023-03-14 15:08 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- getwarp/common: ^3.1
- getwarp/criteria: ^3.1
- getwarp/type: ^3.1
- symfony/polyfill-php80: ^1.22
- symfony/polyfill-php81: ^1.22
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 75aae2d5515b15773091c3aeb4a73eeb66e42608
- Constantine Karnaukhov <genteelknight.woop@gmail.com>
README
getwarp/collection
Framework-agnostic PHP collections
GitHub • Packagist • Installation • Usage
Installation
Via Composer
$ composer require getwarp/collection
Usage
use Warp\Collection\Collection; use Warp\Collection\Map; $collection = Collection::new([0, 1, 2, 3]); \assert(6 === $collection->sum()); $map = Map::new([ 'key' => 'value', 'foo' => 'bar', ]); \assert(true === $map->has('foo')); \assert(false === $map->has('baz'));
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Report issues and send pull requests in the main Warp repository. Please see contributing guide and code of conduct for details.
Credits
License
The MIT License (MIT). Please see license file for more information.
