PHPackages                             phpunit/php-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. [Testing &amp; Quality](/categories/testing)
4. /
5. phpunit/php-file-iterator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

phpunit/php-file-iterator
=========================

FilterIterator implementation that filters files based on a list of suffixes.

7.0.0(3mo ago)7.5k879.3M—2.3%47[1 issues](https://github.com/sebastianbergmann/php-file-iterator/issues)[2 PRs](https://github.com/sebastianbergmann/php-file-iterator/pulls)20BSD-3-ClausePHPPHP &gt;=8.4CI passing

Since Sep 22Pushed today7 watchersCompare

[ Source](https://github.com/sebastianbergmann/php-file-iterator)[ Packagist](https://packagist.org/packages/phpunit/php-file-iterator)[ Docs](https://github.com/sebastianbergmann/php-file-iterator/)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ Fund](https://liberapay.com/sebastianbergmann)[ RSS](/packages/phpunit-php-file-iterator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (41)Used By (20)

[![Latest Stable Version](https://camo.githubusercontent.com/d3074821378d5f90ec8c6729f651e3ac75f43f2c3b2ee64fa71a94ea3695dae5/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f7068702d66696c652d6974657261746f722f76)](https://packagist.org/packages/phpunit/php-file-iterator)[![CI Status](https://github.com/sebastianbergmann/php-file-iterator/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/php-file-iterator/actions)[![Type Coverage](https://camo.githubusercontent.com/8f3513f68765761fb95c638fe6c861962e9746df44ba12b37367d5f1d4dcff58/68747470733a2f2f73686570686572642e6465762f6769746875622f73656261737469616e626572676d616e6e2f7068702d66696c652d6974657261746f722f636f7665726167652e737667)](https://shepherd.dev/github/sebastianbergmann/php-file-iterator)[![codecov](https://camo.githubusercontent.com/ddb9a75ece7e705605f97ef9dc6ddcf8c35d70a5d0577786c61f13a254958e8c/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f7068702d66696c652d6974657261746f722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/php-file-iterator)

php-file-iterator
=================

[](#php-file-iterator)

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require phpunit/php-file-iterator

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev phpunit/php-file-iterator

```

###  Health Score

83

↑

ExcellentBetter than 100% of packages

Maintenance92

Actively maintained with recent releases

Popularity85

Widely adopted with strong download metrics

Community41

Growing community involvement

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 91.7% 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 ~125 days

Recently: every ~1 days

Total

40

Last Release

102d ago

Major Versions

2.0.x-dev → 5.0.12024-07-03

5.1.0 → 6.0.02025-02-07

4.1.x-dev → 5.1.x-dev2026-02-02

5.1.1 → 6.0.12026-02-02

6.0.x-dev → 7.0.02026-02-06

PHP version history (11 changes)1.3.2PHP &gt;=5.2.7

1.3.3PHP &gt;=5.3.3

2.0.0PHP ^7.1

3.0.0PHP ^7.3

3.0.3PHP ^7.3 || ^8.0

3.0.5PHP &gt;=7.3

2.0.3PHP &gt;=7.1

4.0.0PHP &gt;=8.1

5.0.0PHP &gt;=8.2

6.0.0PHP &gt;=8.3

7.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1089?v=4)[Sebastian Probst Eide](/maintainers/sebastian)[@sebastian](https://github.com/sebastian)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (500 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (13 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (8 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (5 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (4 commits)")[![kamazee](https://avatars.githubusercontent.com/u/231518?v=4)](https://github.com/kamazee "kamazee (3 commits)")[![j-d](https://avatars.githubusercontent.com/u/1140726?v=4)](https://github.com/j-d "j-d (2 commits)")[![sun](https://avatars.githubusercontent.com/u/41992?v=4)](https://github.com/sun "sun (1 commits)")[![tsteur](https://avatars.githubusercontent.com/u/273120?v=4)](https://github.com/tsteur "tsteur (1 commits)")[![1blankz7](https://avatars.githubusercontent.com/u/5745388?v=4)](https://github.com/1blankz7 "1blankz7 (1 commits)")[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (1 commits)")[![bartfeenstra](https://avatars.githubusercontent.com/u/376735?v=4)](https://github.com/bartfeenstra "bartfeenstra (1 commits)")[![gooh](https://avatars.githubusercontent.com/u/370948?v=4)](https://github.com/gooh "gooh (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![henriquemoody](https://avatars.githubusercontent.com/u/154023?v=4)](https://github.com/henriquemoody "henriquemoody (1 commits)")[![lyrixx](https://avatars.githubusercontent.com/u/408368?v=4)](https://github.com/lyrixx "lyrixx (1 commits)")[![niconoe-](https://avatars.githubusercontent.com/u/9560327?v=4)](https://github.com/niconoe- "niconoe- (1 commits)")

---

Tags

filesystemiterator

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[instaclick/php-webdriver

PHP WebDriver for Selenium 2

43661.8M22](/packages/instaclick-php-webdriver)[gecko-packages/gecko-php-unit

Additional PHPUnit asserts and constraints.

1373.9M4](/packages/gecko-packages-gecko-php-unit)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3287.8M898](/packages/szepeviktor-phpstan-wordpress)[php-vfs/php-vfs

Virtual file system implementation for use with PHP unit testing.

572.7M24](/packages/php-vfs-php-vfs)

PHPackages © 2026

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