wok/collection
Composer 安装命令:
composer require wok/collection
包简介
Data collection manager
README 文档
README
This library is lightweight collection manager.
Diclaimer : This component is part of the WOK (Web Operational Kit) framework. It however can be used as a standalone library.
Install
It is recommanded to install that component as a dependency using Composer :
composer require wok/collection
You're also free to get it with git or by direct download while this package has no dependencies.
git clone https://github.com/web-operational-kit/collection.git
Features
As this component roles are to be a data container and manager, it's features are related to collection data manipulation.
However, it has also been developed to be a dependency that other components can require and extend.
Usage
// Register the data collection $collection = new \WOK\Collection\Collection(array( 'a' => 'value', 'b' => 'value', 'c' => 'value', )); $collection->add(array('key'=>'value')); // Add some data $exists = $collection->has($key); // Check if a data exists by it's key $value = $collection->get($key); // Get a data value by it's key $collection->remove($key); // Remove a data $data = $collection->all(); // Get the all data collection as array // Iterate through the collection foreach($collection as $key => $data) { // Play with the data list }
wok/collection 适用场景与选型建议
wok/collection 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 87 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 09 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wok/collection 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wok/collection 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 87
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-13