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

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

phellow/filesystem
==================

Handles filesystem operations

1.0.0(11y ago)029MITPHP

Since Dec 20Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Install via Composer
--------------------

[](#install-via-composer)

Add the following dependency to your project's *composer.json* file:

```
{
    "require": {
        "phellow/filesystem": "1.*"
    }
}

```

Usage
-----

[](#usage)

The *FilesystemOperator* is the main class to work with files and directories. You can add an object of this class to your Dependency Injection Container.

```
$fs = new \Phellow\Filesystem\FilesystemOperator();

// create a directory if not exists
$fs->ensureDir('some/dir');

// copy file or directory
$fs->copy('someFile', 'newFile');
$fs->copy('some/dir', 'new/dir');

// get all files/directories of a directory
$files = $fs->getFiles('some/dir');
foreach ($files as $file) {
    if ($file->isFile()) {
        echo $file->path . ' is a file';
    } elseif ($file->isDirectory()) {
        echo $file->path . ' is a dir';
    } elseif ($file->isSymlink()) {
        echo $file->path . ' is a symlink';
    }
}

```

To see all the possibilities, you can check out the Unit Tests under *tests/*.

License
-------

[](#license)

The MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

4167d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5efd9b3950946d0adf5a5046e1bfce3fd0e93ad581a78fd7478ffdf0957e1944?d=identicon)[christianblos](/maintainers/christianblos)

---

Top Contributors

[![christianblos](https://avatars.githubusercontent.com/u/864455?v=4)](https://github.com/christianblos "christianblos (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

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

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[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)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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