PHPackages                             killertux/riterator - 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. killertux/riterator

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

killertux/riterator
===================

Rust iterators in PHP

0.5.2(2y ago)316[1 PRs](https://github.com/killertux/riterator/pulls)MITPHPCI passing

Since Oct 27Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/killertux/riterator)[ Packagist](https://packagist.org/packages/killertux/riterator)[ RSS](/packages/killertux-riterator/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

About
-----

[](#about)

Have you ever wanted you could use an iterator in PHP that was very similar to that of Rust. Or maybe you just want a more powerful iterator in PHP. Maybe PHP iterators are giving you chills with all that rewind and key methods... Well, you just found what you were looking for.

**RIterator** (*rust iterator*) tries to implement an iterator that very closely resembles that of rust. To start, just add this project to your composer, extends the class `RIterator\Iterator`, and implement your next function.

First, I tried to add an Option class as we have in Rust. Then, I decided to remove it and use `null` because this is probably more PHP idiomatic. But, I am open to suggestions.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance56

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~164 days

Recently: every ~2 days

Total

7

Last Release

1092d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/132703?v=4)[Daniel Clemente](/maintainers/clemente)[@clemente](https://github.com/clemente)

---

Top Contributors

[![killertux](https://avatars.githubusercontent.com/u/12685991?v=4)](https://github.com/killertux "killertux (28 commits)")

---

Tags

iterator-libraryiteratorsphpphp-libraryrust

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/killertux-riterator/health.svg)

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

###  Alternatives

[rezzza/shorty

Underwear for your long urls

1315.4k1](/packages/rezzza-shorty)

PHPackages © 2026

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