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

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

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

kununu/collections

最新稳定版本:v6.5.0

Composer 安装命令:

composer require kununu/collections

包简介

To reduce boilerplate associated with collections

关键字:

README 文档

README

The goal of this library is to provide some boilerplate code to assist you in creating more friendly collections when using ArrayIterator.

Install

You can use this library by issuing the following command:

composer require kununu/collections

Running Tests

Run the tests by doing:

composer install vendor/bin/phpunit

or

composer install composer test

To run test and generate coverage information:

composer install composer test-coverage

Usage

The library defines interfaces to deal with collections and also boilerplate code with default implementations.

You can either use the provided traits to your custom class extending ArrayIterator or simply expand the abstract collection classes using them.

It has a default implementation for a "basic" collection and also one to filter and group data on your collections (a "filterable" collection).

It defines interfaces to convert collection items to array, string and int and to compare items.

More details:

Contribute

If you are interested in contributing read our contributing guidelines.

Continuous Integration Quality Gate Status

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04