定制 dhii/iterator-interface 二次开发

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

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

dhii/iterator-interface

最新稳定版本:v0.1-alpha1

Composer 安装命令:

composer require dhii/iterator-interface

包简介

Interfaces for standard iterators

README 文档

README

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards

Details

An iterator standard, which aims to provide more information about each iteration by exposing an immutable iteration object. This object can be safely passed to other methods, even those which save the reference to it, as a new object is created for every iteration. That object can provide additional information besides the current key and value. This makes implementations of this standard easier to work with than other iterator implementations, such as DirectoryIterator, which expose iteration data through the iterator itself, instead of a separate object, making it hard to keep iteration data immutable. The fact that its manipulator methods are allowed to throw a specific type of exception make it possible to create more reliable consumers with meaningful error reporting.

Features

  • All standards-compliant iterators are PHP iterators.
  • Iteration information provided via immutable and extensible iteration objects.
  • Easier to keep track of iteration information: each iteration produces a separate iteration object.
  • Specialized iterator types can be created on interface level by promising custom iteration types.

Interfaces

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固