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 2w 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 today

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

26

—

LowBetter than 46% of packages

Maintenance63

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

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k488.3M20.8k](/packages/mockery-mockery)[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k548.7M613](/packages/phpspec-prophecy)[sebastian/global-state

Snapshotting of global state

6.6k848.0M40](/packages/sebastian-global-state)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.1k475.4M94](/packages/hamcrest-hamcrest-php)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k76.1M6.0k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k113.9M623](/packages/brianium-paratest)

PHPackages © 2026

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