PHPackages                             struggle-for-php/sfp-iterator-url - 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. struggle-for-php/sfp-iterator-url

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

struggle-for-php/sfp-iterator-url
=================================

A streamWrapper for Iterator

0.1.1(9y ago)445BSD-3-ClausePHPPHP &gt;=5.5

Since Jun 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/struggle-for-php/SfpIteratorUrl)[ Packagist](https://packagist.org/packages/struggle-for-php/sfp-iterator-url)[ RSS](/packages/struggle-for-php-sfp-iterator-url/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

SfpIteratorUrl
==============

[](#sfpiteratorurl)

[![Build Status](https://camo.githubusercontent.com/7b718236c5a20528976346f3391022dea032f2bb4cd83426c24b9be539af1a99/68747470733a2f2f7472617669732d63692e6f72672f7374727567676c652d666f722d7068702f5366704974657261746f7255726c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/struggle-for-php/SfpIteratorUrl)

A streamWrapper for Iterator.

Why ?
-----

[](#why-)

To avoid entire buffering.

Usage (Yeah! memory usage!)
---------------------------

[](#usage-yeah-memory-usage)

```
class Bigsize extends IteratorIterator
{
    public function current()
    {
        $str = str_repeat($this->getInnerIterator()->current(), 8192);
        return $str;
    }
}

$iterator = new Bigsize(new ArrayIterator(range(1, 100)));
$fp = (new IteratorUrl)->open($iterator);
$body = new Zend\Diactoros\Stream($fp);

// emit
fpassthru($body->detach());

echo formatBytes(memory_get_usage());  // 278.97 KB __toString();           // 1.75MB
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Total

2

Last Release

3378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4eed2726ad1fce689a99672d965d8b4a387f030f08290e00708b66e4621139d2?d=identicon)[sasezaki](/maintainers/sasezaki)

---

Top Contributors

[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (26 commits)")

---

Tags

streamiteratorstreamwrapper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/struggle-for-php-sfp-iterator-url/health.svg)

```
[![Health](https://phpackages.com/badges/struggle-for-php-sfp-iterator-url/health.svg)](https://phpackages.com/packages/struggle-for-php-sfp-iterator-url)
```

###  Alternatives

[react/stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

689126.8M194](/packages/react-stream)[nikic/iter

Iteration primitives using generators

1.1k5.9M38](/packages/nikic-iter)[loophp/collection

A (memory) friendly, easy, lazy and modular collection class.

745663.8k13](/packages/loophp-collection)[athari/yalinqo

YaLinqo, a LINQ-to-objects library for PHP

4561.2M5](/packages/athari-yalinqo)[markrogoyski/itertools-php

Iteration tools for PHP

14911.3k](/packages/markrogoyski-itertools-php)[ginq/ginq

LINQ to Object inspired DSL for PHP

192257.5k3](/packages/ginq-ginq)

PHPackages © 2026

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