PHPackages                             fyre/iterator - 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. fyre/iterator

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

fyre/iterator
=============

An iterator library.

v6.0.1(8mo ago)0332MITPHP

Since Oct 26Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyreIterator)[ Packagist](https://packagist.org/packages/fyre/iterator)[ RSS](/packages/fyre-iterator/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (27)Used By (2)

FyreIterator
============

[](#fyreiterator)

**FyreIterator** is a free, open-source iteration library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Methods](#methods)

Installation
------------

[](#installation)

**Using Composer**

```
composer require fyre/iterator

```

In PHP:

```
use Fyre\Utility\Iterator;
```

Basic Usage
-----------

[](#basic-usage)

```
$iterator = new Iterator();
```

Methods
-------

[](#methods)

**Add**

Add a test

- `$name` is a string representing the test name.
- `$callback` is the callback to execute.

```
$iterator->add($name, $callback);
```

**All**

Get all tests.

```
$tests = $iterator->all();
```

**Clear**

Clear all tests.

```
$iterator->clear();
```

**Count**

Get the number of tests.

```
$count = $iterator->count();
```

**Get**

Get a specific test callback.

- `$name` is a string representing the test name.

```
$test = $iterator->get($name);
```

**Has**

Determine whether a test exists.

- `$name` is a string representing the test name.

```
$hasTest = $iterator->has($name);
```

**Remove**

Remove a test.

- `$name` is a string representing the test name.

```
$iterator->remove($name);
```

**Run**

Run the tests and return the results.

- `$iterations` is a number representing the number of iterations to run, and will default to *1000*.

```
$results = $iterator->run($iterations);
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance61

Regular maintenance activity

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~58 days

Recently: every ~22 days

Total

26

Last Release

244d ago

Major Versions

v1.0.4 → v2.02023-06-25

v2.0.1 → v3.02023-07-08

v3.0 → v4.02023-07-23

v4.0.8 → v5.02024-10-26

v5.0.6 → v6.02025-10-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad81fd5941e3a637c8a5749d05ae3ed9314d5e2fee57f59c3d9ec3b41259c6b?d=identicon)[elusivecodes](/maintainers/elusivecodes)

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (24 commits)")

---

Tags

iteratorphputility

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fyre-iterator/health.svg)

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

PHPackages © 2026

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