PHPackages                             kfreiman/php-file-seekable-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. kfreiman/php-file-seekable-iterator

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

kfreiman/php-file-seekable-iterator
===================================

Implementation of SeekableIterator for text files via generators

01PHP

Since Nov 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kfreiman/php-file-seekable-iterator)[ Packagist](https://packagist.org/packages/kfreiman/php-file-seekable-iterator)[ RSS](/packages/kfreiman-php-file-seekable-iterator/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Seekable file iterator
======================

[](#seekable-file-iterator)

It is implementation of [SeekableIterator](https://secure.php.net/manual/en/class.seekableiterator.php) for text files. This library uses [generators](https://secure.php.net/manual/en/class.generator.php) under hood, so it's suitable for large files.

How to use
----------

[](#how-to-use)

```
$iterator = new FileSeekableIterator('/path/to/file');

$iterator->valid(); // true
$iterator->current(); // "16y3424ggg4\n" (based on test/files/data.txt example)
$iterator->key(); // 0

$iterator->seek(3);
$iterator->key(); // 3
```

Standart implementation
-----------------------

[](#standart-implementation)

Note, this project was created for learning purposes and can be used as an example, but in most cases [SplFileObject](http://php.net/manual/en/class.splfileobject.php) from Standard PHP Library is more useful.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4507eb0e7abf6bfde893d8daa17e141281062909eefd9450e63fa31dee94cfa4?d=identicon)[k.freiman](/maintainers/k.freiman)

---

Top Contributors

[![kfreiman](https://avatars.githubusercontent.com/u/2056294?v=4)](https://github.com/kfreiman "kfreiman (2 commits)")

### Embed Badge

![Health badge](/badges/kfreiman-php-file-seekable-iterator/health.svg)

```
[![Health](https://phpackages.com/badges/kfreiman-php-file-seekable-iterator/health.svg)](https://phpackages.com/packages/kfreiman-php-file-seekable-iterator)
```

###  Alternatives

[yohang/calendr

Object Oriented calendar management

465614.1k3](/packages/yohang-calendr)[codelicia/xulieta

Xulieta is a light php binary that lint documentation snippets

6713.3k5](/packages/codelicia-xulieta)[innoge/filament-form-faker

A package to generate fake input data for Filament forms.

162.5k](/packages/innoge-filament-form-faker)[digitoimistodude/dude-most-read-posts

A developer-friendly plugin to count most read posts

162.4k](/packages/digitoimistodude-dude-most-read-posts)

PHPackages © 2026

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