emonkak/collection
最新稳定版本:v2.0.0
Composer 安装命令:
composer require emonkak/collection
包简介
A collection library as a container for aggregation of objects
README 文档
README
A collection library as a container for aggregation of objects.
Requirements
- PHP 5.4 or higher
- Composer
Licence
MIT Licence
Example
// Take five elements from a infinite list of even numbers. Collection::iterate(0, function($n) { return $n + 1; }) ->filter(function($n) { return $n % 2 === 0; }) ->take(5) ->each(function($n) { echo $n, PHP_EOL; }); // => 0 // 2 // 4 // 6 // 8
Documentation
Please see Wiki. (but wiki pages are Japanese only)
统计信息
- 总下载量: 15.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-11