承接 fast-forward/iterators 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fast-forward/iterators

最新稳定版本:v1.2.0

Composer 安装命令:

composer require fast-forward/iterators

包简介

A robust and optimized library for advanced PHP Iterators.

README 文档

README

PHP Version Composer Package Tests Coverage Docs License GitHub Sponsors

A robust and optimized library for advanced PHP Iterators.

Enhance your PHP applications with high-performance iterators: lookahead, peeking, filtering, grouping, chunking, and more.

✨ Features

  • 🔁 Advanced and composable iterator types
  • 👀 Lookahead and peeking support
  • 🧼 Filtering and mapping
  • 🧩 Grouping, chunking, and flattening
  • 🧪 Fully tested, mutation safe, and statically analyzed

📦 Installation

Install via Composer:

composer require fast-forward/iterators

Requirements: PHP 8.3 or higher

🚀 Quickstart

use FastForward\Iterator\ChunkedIteratorAggregate;

$data = range(1, 10);
$chunked = new ChunkedIteratorAggregate($data, 3);
foreach ($chunked as $chunk) {
    print_r($chunk);
}

Expected output:

Array
(
    [0] => 1
    [1] => 2
    [2] => 3
)
Array
(
    [0] => 4
    [1] => 5
    [2] => 6
)
Array
(
    [0] => 7
    [1] => 8
    [2] => 9
)
Array
(
    [0] => 10
)

🛠 Usage Patterns

All iterators and utilities are available under the FastForward\Iterator namespace. Simply require Composer's autoloader:

require_once 'vendor/autoload.php';
use FastForward\Iterator\ChunkedIteratorAggregate;
use FastForward\Iterator\SlidingWindowIteratorIterator;
// ...

You can chain, compose, and adapt iterators for a wide variety of data processing tasks.

📚 Documentation & Examples

🤝 Contributing

Contributions, bug reports and suggestions are welcome! Please open an issue or pull request on GitHub.

🧑‍💻 Author

Felipe Sayão Lobato Abreu
github@mentordosnerds.com

📄 License

This project is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固