epfremme/collections 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

epfremme/collections

Composer 安装命令:

composer require epfremme/collections

包简介

PHP Collection Classes

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage

Overview

This library was intended to provide base PHP collection classes that can be extended to provide application specific functionality.

There are 3 main collection classes provided by default:

  • BaseCollection - This is a basic iterable collection very similar in capabilities to ArrayObject
  • Collection - An extension of BaseCollection with added methods for conventional array access & modifications
  • ImmutableCollection - Another extension of BaseCollection but with all remove/write capabilities disabled

The primary components of each collection is also included as PHP traits to assist in the creation of any custom collection classes that can't simply extend one of the included collection class objects. Each of the traits included is designed to meet SPL Traversable Interface methods. Each trait has the expectation that the class using it can access an $elements member variable on the collection class.

Collection Traits

  • ArrayAccessTrait - Satisfies SPL ArrayAccess Interface
  • ClearableTrait - Adds methods to clear and test emptiness of collections
  • CountableTrait - Satisfies SPL Countable Interface
  • IterableTrait - Satisfies SPL Iterator Interface
  • SearchableTrait - Adds methods to better search & filter collections
  • SeekableTrait - Satisfies SPL SeekableIterator Interface (also requires IterableTrait)

Installation

  • composer require epfremme/collections
  • composer install

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固