PHPackages                             jocolopes/filefilter - 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. jocolopes/filefilter

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

jocolopes/filefilter
====================

Provides an easy way to scan and filter files

1.0.0(11y ago)0471MITPHPPHP &gt;=5.4.0

Since Feb 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/DPr00f/filefilter)[ Packagist](https://packagist.org/packages/jocolopes/filefilter)[ RSS](/packages/jocolopes-filefilter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Filefilter
==========

[](#filefilter)

Quickly scan folders for files that you want.

Easy to use library.

Instalation
===========

[](#instalation)

Add this line to your composer

```
{
    "require": {
        "jocolopes/filefilter": ">=1.0.0"
    }
}

```

Usage
=====

[](#usage)

```
$fs = new Jocolopes\Filefilter();

print_r($fs->scan('directory/**/target/*.js'));
print_r($fs->scan('directory/**/target/**/*.js'));
print_r($fs->scan('directory/**/*.js'));
print_r($fs->scan('directory/**/example/**/*.js'));

```

FAQ
===

[](#faq)

Do I need anything special to use this library?
-----------------------------------------------

[](#do-i-need-anything-special-to-use-this-library)

You do need PHP 5.4+ and composer. You may also need to load the `vendor/autoload.php` into your project if you're not already.

Will this work on my framework?
-------------------------------

[](#will-this-work-on-my-framework)

This library is framework agnostic, maybe the framework you're using requires some aditional setup.

If your framework uses composer you should be good to go. But let me know if you run into any troubles.

Found a bug, what should I do?
------------------------------

[](#found-a-bug-what-should-i-do)

If you have the capability to fix it yourself please do it and create a pull request.

If you don't, raise an issue on github and me or someone else will try to fix it.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea0d829f110911186a63e1287b5280ce50b14cb2eb05bd8c0b7cbf9496c0a667?d=identicon)[DPr00f](/maintainers/DPr00f)

---

Top Contributors

[![DPr00f](https://avatars.githubusercontent.com/u/989959?v=4)](https://github.com/DPr00f "DPr00f (7 commits)")

---

Tags

filesystemlibraryfilefilterfilefilter

### Embed Badge

![Health badge](/badges/jocolopes-filefilter/health.svg)

```
[![Health](https://phpackages.com/badges/jocolopes-filefilter/health.svg)](https://phpackages.com/packages/jocolopes-filefilter)
```

###  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)[league/flysystem-webdav

WebDAV filesystem adapter for Flysystem.

762.3M56](/packages/league-flysystem-webdav)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

2610.5M31](/packages/league-flysystem-async-aws-s3)

PHPackages © 2026

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