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 today

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 47% 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

4212d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/864455?v=4)[Christian Blos](/maintainers/christianblos)[@christianblos](https://github.com/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)
```

PHPackages © 2026

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