PHPackages                             jumper423/file-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. [File &amp; Storage](/categories/file-storage)
4. /
5. jumper423/file-iterator

ActiveLibrary[File &amp; Storage](/categories/file-storage)

jumper423/file-iterator
=======================

file iterator

1.0.1(9y ago)420Apache License 2.0PHPPHP &gt;=7.0

Since Oct 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jumper423/file-iterator)[ Packagist](https://packagist.org/packages/jumper423/file-iterator)[ Docs](https://github.com/jumper423/file-iterator)[ RSS](/packages/jumper423-file-iterator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

File Iterator
=============

[](#file-iterator)

[![PHP version](https://camo.githubusercontent.com/1056d9072e13ce1b86eed24f6284a90880b6956c82d7f197be124ed0fdf729be/68747470733a2f2f62616467652e667572792e696f2f70682f6a756d70657234323325324666696c652d6974657261746f722e737667)](https://badge.fury.io/ph/jumper423%2Ffile-iterator)[![Build Status](https://camo.githubusercontent.com/9b2e032ebd7e2b4893dbd69d53a96d494d3fcf7bd4a333b2b12b8456164b2fff/68747470733a2f2f7472617669732d63692e6f72672f6a756d7065723432332f66696c652d6974657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jumper423/file-iterator)

Дан текстовый файл размером 2ГБ. Напишите класс, реализующий интерфейс SeekableIterator, для чтения данного файла.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist jumper423/file-iterator

```

or add

```
"jumper423/yfile-iterator": "*"
```

to the `require` section of your composer.json.

Usage &amp; Documentation
-------------------------

[](#usage--documentation)

```
$fileIterator = new \jumper423\FileIterator(__DIR__ . '/file');
$fileIterator->rewind();
$fileIterator->next();
$fileIterator->next();
$fileIterator->seek(3);
$fileIterator->next();
echo $fileIterator->current();
$fileIterator->next();
echo $fileIterator->current();
$fileIterator->seek(9);
$fileIterator->next();
$fileIterator->next();
if ($fileIterator->valid()) {
    ...
}
```

Tests
-----

[](#tests)

```
vendor/bin/phpunit

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3502d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/439d5d301333a1fa93f698c0ff8b03b2634db04507148d5d9a692fa1e7605722?d=identicon)[jumper423](/maintainers/jumper423)

---

Top Contributors

[![jumper423](https://avatars.githubusercontent.com/u/12099016?v=4)](https://github.com/jumper423 "jumper423 (16 commits)")

---

Tags

fileiteratorbigSeekableIterator

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72528.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)

PHPackages © 2026

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