PHPackages                             xenira/iter-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xenira/iter-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xenira/iter-tools
=================

Library to make iterator pattern less cumbersome in php

v0.1.0(2y ago)34[5 issues](https://github.com/Xenira/php-iter-tools/issues)[3 PRs](https://github.com/Xenira/php-iter-tools/pulls)MPL-2.0PHPCI failing

Since Sep 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Xenira/php-iter-tools)[ Packagist](https://packagist.org/packages/xenira/iter-tools)[ RSS](/packages/xenira-iter-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

PHP Iter Tools
==============

[](#php-iter-tools)

Table of Contents

- [1. Usage](#usage)

Simple PHP library for making working with iterators more fun.

Heavily inspired by rust’s iterators.

Currently not all methods are implemented, but the most important ones are. Use with caution.

1. Usage
--------

[](#1-usage)

```
$iterator = new ArrayIterator([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
$iterator = $iterator
    ->filter(fn ($value) => $value % 2 === 0)
    ->map(fn ($value) => $value * 2)
    ->take(4);

assert($iterator->collect() === [4, 8, 12, 16]);
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

981d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d36d83415b51fa1bb3820a79f19625089443bfa3b28d5dce4057b5516d47b13?d=identicon)[Xenira](/maintainers/Xenira)

---

Top Contributors

[![Xenira](https://avatars.githubusercontent.com/u/1288524?v=4)](https://github.com/Xenira "Xenira (10 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xenira-iter-tools/health.svg)

```
[![Health](https://phpackages.com/badges/xenira-iter-tools/health.svg)](https://phpackages.com/packages/xenira-iter-tools)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
