raidros/collection

为您的类创建PHP集合

此包的官方仓库似乎已丢失,因此该包已被冻结。

2.4.0 2016-08-27 03:57 UTC

This package is not auto-updated.

Last update: 2021-02-19 23:45:35 UTC


README

Latest Version on Packagist Software License Build Status StyleCI Coverage Status Quality Score SensioLabsInsight Total Downloads

Collection 帮助您更容易地构建对象集合。

安装

通过 Composer

$ composer require raidros/collection

用法

$collection = new Raidros\Collection\Collection;

// Adding items to collection
$collection->put('something', new DummyClass);
$collection->put('another.something', new AnotherDummyClass);

// Getting all items stored on collection
$items = $collection->all();

// Finding one specific item on collection by name
$item = $collection->find('something');

请参阅Wiki以获取更多信息。

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅许可证文件