Skip to content

getwarp/collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getwarp/collection

Framework-agnostic PHP collections

GitHubPackagistInstallationUsage

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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages