briward/itemlist

提供构建强类型值列表的方式。提供搜索、排序和操作列表的方法。深受.NET List类的启发。

dev-master 2018-06-26 12:27 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:25:41 UTC


README

Build Status

提供构建强类型值列表的方式。提供搜索、排序和操作列表的方法。深受.NET List类的启发。

安装

composer require briward/itemlist

示例用法

use Briward\ItemList\ItemList;

class Foo {}

$list = new ItemList('Foo');
$list->add(new Foo());
print_r($list->items());