PHPackages                             sebastian/file-filter - 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. sebastian/file-filter

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

sebastian/file-filter
=====================

Library for filtering files

4148PHPCI passing

Since Mar 8Pushed 2mo agoCompare

[ Source](https://github.com/sebastianbergmann/file-filter)[ Packagist](https://packagist.org/packages/sebastian/file-filter)[ RSS](/packages/sebastian-file-filter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/347baaaa3da99208602ca4b0fe751f9662c6d895b561b88ac9ce218be83ec352/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e2f66696c652d66696c7465722f76)](https://packagist.org/packages/sebastian/file-filter)[![CI Status](https://github.com/sebastianbergmann/file-filter/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/file-filter/actions)[![codecov](https://camo.githubusercontent.com/f49ce3459c680d3a00e3a06172de514bd05e6e3c99ed8bfad24700f805afa381/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f66696c652d66696c7465722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/file-filter)

sebastian/file-filter
=====================

[](#sebastianfile-filter)

Library for filtering files, extracted from `phpunit/phpunit`.

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

[](#installation)

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

```
composer require sebastian/file-filter

```

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 sebastian/file-filter

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance61

Regular maintenance activity

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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://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 (22 commits)")

### Embed Badge

![Health badge](/badges/sebastian-file-filter/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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