承接 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
  • 点击次数: 2
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

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

其他信息

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