galvao-eti/collection
最新稳定版本:2.1.1
Composer 安装命令:
composer require galvao-eti/collection
包简介
A versatile, fully-featured Linear Collection implementation.
README 文档
README
A versatile, fully-featured Linear Collection implementation.
Installation
composer require galvao-eti/collection
Features
Features are considered present (ticked) when fully unit tested.
Strongly Typed Collections:
- Mixed (Default)
- Integer
- Double
- Boolean
- Array
- Object
- Objects of a specific class
- Overwriting prevention when adding data with existing key or updating
- Locking the collection (no more writing to it)
- Deletion
- Automatically rearranging the collection's keys upon deletion
- Update items
Usage
Example usage:
<?php require 'vendor/autoload.php'; use GalvaoEti\Collection\Collection; $collection = new Collection('string'); $collection->add('foo'); $collection->add('bar', false); foreach ($collection->generateData() as $item) { echo "$item<br>"; }
See the bin/useCollection.php script for a more in-depth example.
License
Apache 2.0
Credits
Created by Er Galvão Abbott galvao@php.net for Galvão Desenvolvimento de Sistemas.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-01-16