定制 plumphp/plum-collection 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

plumphp/plum-collection

最新稳定版本:v0.1.1

Composer 安装命令:

composer require plumphp/plum-collection

包简介

Integrations the Cocur\Collection component into Plum.

README 文档

README

Plum

PlumCollection integrates Cocur\Collection into Plum. Plum is a data processing pipeline for PHP.

Latest Version Build Status Windows Build status Scrutinizer Code Quality Code Coverage StyleCI

Developed by Florian Eckerstorfer in Vienna, Europe.

Installation

You can install PlumCollection using Composer.

$ composer require plumphp/plum-collection

Usage

Please refer to the Plum documentation for more information about using Plum in general.

PlumCollection provides converts to convert items into elements of a collection.

ItemConverter

Plum\PlumCollection\ItemConverter converts the given item into an instance of Cocur\Collection\Item and adds it to the collection.

use Plum\PlumCollection\ItemConverter;
use Cocur\Collection\Collection;

$collection = new Collection();
$converter = new ItemConverter($collection);

$converter->convert('foobar'); // -> Cocur\Collection\Item
$collection->count(); // -> 1

ArrayItemConverter

Plum\PlumCollection\ArrayItemConverter converts the given item into an instance of Cocur\Collection\ArrayItem and adds it to the collection.

use Plum\PlumCollection\ArrayItemConverter;
use Cocur\Collection\Collection;

$collection = new Collection();
$converter = new ArrayItemConverter($collection);

$converter->convert(['foo' => 'bar']); // -> Cocur\Collection\ArrayItem
$collection->count(); // -> 1

Change Log

Version 0.1.1 (17 May 2015)

  • Update dependency to Cocur\Collection

Version 0.1 (28 April 2015)

  • Initial release

License

The MIT license applies to plumphp/plum-collection. For the full copyright and license information, please view the LICENSE file distributed with this source code.

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固