PHPackages                             dhii/iterator-helper-base - 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. dhii/iterator-helper-base

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

dhii/iterator-helper-base
=========================

Common functionality for working with iterables

v0.1-alpha2(8y ago)011.9k[1 issues](https://github.com/Dhii/iterator-helper-base/issues)[1 PRs](https://github.com/Dhii/iterator-helper-base/pulls)9MITPHPPHP ^5.4 | ^7.0

Since Sep 10Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Dhii/iterator-helper-base)[ Packagist](https://packagist.org/packages/dhii/iterator-helper-base)[ RSS](/packages/dhii-iterator-helper-base/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (6)Used By (9)

Dhii - Iterator - Helper - Base
===============================

[](#dhii---iterator---helper---base)

[![Build Status](https://camo.githubusercontent.com/eb9ac2cc9c79db827bc57f3d705e18941105f1bff38aed8295372137cc3694aa/68747470733a2f2f7472617669732d63692e6f72672f446869692f6974657261746f722d68656c7065722d626173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dhii/iterator-helper-base)[![Code Climate](https://camo.githubusercontent.com/f401923af40e72c2b165108e8407a4933122493f78c240b3f74e43880e423ff2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f6974657261746f722d68656c7065722d626173652f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/iterator-helper-base)[![Test Coverage](https://camo.githubusercontent.com/01830fce1ed0e5e7a5fffa7eeceec1fe366a701ad5b528735e990da65c8056c3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f6974657261746f722d68656c7065722d626173652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/iterator-helper-base/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/8b0b5f215796029e13b0a69d0695c27ef0657d6997b16d98a12c07e03c708d09/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6974657261746f722d68656c7065722d626173652f76657273696f6e)](https://packagist.org/packages/dhii/iterator-helper-base)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Common functionality for working with iterables.

Traits
------

[](#traits)

- [`ResolveIteratorCapableTrait`](src/ResolveIteratorCapableTrait.php) - Retrieves the deepest iterator within a depth limit in an iterator hierarchy, where every parent is an [`IteratorAggregate`](http://php.net/manual/en/class.iteratoraggregate.php). Can use a complex test to look for things that are not only iterators. Detects some signs of infinite recursion.
- [`CountIterableCapableTrait`](src/CountIterableCapableTrait.php) - Counts elements in an iterable which passes normalization by [`NormalizeIterableCapableTrait`](https://github.com/Dhii/normalization-helper-base/blob/develop/src/NormalizeIterableCapableTrait.php). Uses the most optimal method for retrieving the count.
- [`NormalizeIteratorCapableTrait`](src/NormalizeIteratorCapableTrait.php) - Normalizes any iterable that passes normalization by [`NormalizeIterableCapableTrait`](https://github.com/Dhii/normalization-helper-base/blob/develop/src/NormalizeIterableCapableTrait.php) into an instance of [`Iterator`](http://php.net/manual/en/class.iterator.php).
- [`MapIterableCapableTrait`](src/MapIterableCapableTrait.php) - Maps an iterable, similarly to [`array_map()`](http://php.net/manual/en/function.array-map.php) or [`iterator_apply()`](http://php.net/manual/en/function.iterator-apply.php).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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

Every ~35 days

Total

2

Last Release

2979d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (50 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-iterator-helper-base/health.svg)

```
[![Health](https://phpackages.com/badges/dhii-iterator-helper-base/health.svg)](https://phpackages.com/packages/dhii-iterator-helper-base)
```

###  Alternatives

[timothyjensen/acf-field-group-values

Retrieve all post meta and option values for the specified ACF field group

486.4k](/packages/timothyjensen-acf-field-group-values)[mohamedsabil83/filament-hijri-picker

A Hijri date time picker component for Filament

224.4k](/packages/mohamedsabil83-filament-hijri-picker)[denpa/laravel-zeromq

ZeroMQ driver for Laravel

171.1k](/packages/denpa-laravel-zeromq)

PHPackages © 2026

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