PHPackages                             halimonalexander/filesystem - 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. halimonalexander/filesystem

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

halimonalexander/filesystem
===========================

Filesystem fetcher library

v1.0(5y ago)04BSD-3-ClausePHPPHP ^7.4

Since Dec 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/halimonalexander/filesystem)[ Packagist](https://packagist.org/packages/halimonalexander/filesystem)[ Docs](https://github.com/halimonalexander/filesystem)[ RSS](/packages/halimonalexander-filesystem/feed)WikiDiscussions master Synced 5d ago

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

Filesystem
==========

[](#filesystem)

Filesystem fetcher library that can help with fetching files, directories or both of them from a provided path.

Additional filters can be applied to the response to get more sensetive results.

Usage:
------

[](#usage)

```
use HalimonAlexander\Filesystem\Filesystem;
use HalimonAlexander\Filesystem\Filters\ExtensionFilter;

$filesystem = new Filesystem();
$files = $filesystem
    ->enter('/var/log/mysql/')
    ->files()
    ->filter(new ExtensionFilter('log'))
    ->get();

$folders = $filesystem
    ->enter('/var/www/app/')
    ->directories()
    ->get();

$foldersWithFiles = $filesystem
    ->enter('/etc/nginx/')
    ->get();
```

Filters:
--------

[](#filters)

### ExtensionFilter

[](#extensionfilter)

Can be applied for files only to filter by provided file extension. In other cases will throw an error.

```
use HalimonAlexander\Filesystem\Filesystem;
use HalimonAlexander\Filesystem\Filters\ExtensionFilter;

$filesystem = new Filesystem();
$files = $filesystem
    ->enter('/var/log/mysql/')
    ->files()
    ->filter(new ExtensionFilter('log'))
    ->get();
```

### RegexpFilter

[](#regexpfilter)

Can be applied to any type of result.

```
use HalimonAlexander\Filesystem\Filesystem;
use HalimonAlexander\Filesystem\Filters\RegexpFilter;

$filesystem = new Filesystem();
$files = $filesystem
    ->enter('/var/log/mysql/')
    ->filter(new RegexpFilter('2020-01-01(.*)'))
    ->get();
```

### Combining filters

[](#combining-filters)

Filters can be combined to receive the best results.

```
use HalimonAlexander\Filesystem\Filesystem;
use HalimonAlexander\Filesystem\Filters\ExtensionFilter;
use HalimonAlexander\Filesystem\Filters\RegexpFilter;

$filesystem = new Filesystem();
$files = $filesystem
    ->enter('/var/log/mysql/')
    ->files()
    ->filter(new ExtensionFilter('log'))
    ->filter(new RegexpFilter('2020-01-\d{2}.*'))
    ->filter(new RegexpFilter('\d{4}-\d{2}-d{2}_1.*'))
    ->get();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1990d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33194347?v=4)[Alexander Halimon](/maintainers/halimonalexander)[@halimonalexander](https://github.com/halimonalexander)

---

Top Contributors

[![halimonalexander](https://avatars.githubusercontent.com/u/33194347?v=4)](https://github.com/halimonalexander "halimonalexander (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/halimonalexander-filesystem/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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