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

ActiveLibrary

mensbeam/filesystem
===================

Simplifies using many of php's built-in filesystem functions

v1.0.2(1y ago)0101↓100%1MITPHPPHP &gt;=8.1

Since Feb 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/mensbeam/Filesystem)[ Packagist](https://packagist.org/packages/mensbeam/filesystem)[ RSS](/packages/mensbeam-filesystem/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (4)Used By (1)

Filesystem
==========

[](#filesystem)

This is a fork of Symfony's Filesystem component which simplifies php's built-in filesystem functions. A common painpoint in using Symfony's component is that it is unnecessarily instantiated:

```
use Symfony\Component\Filesystem;
$fs = new Filesystem();
$fs->chmod('/path/to/file', 0600);
```

This is awkward because there isn't a reason to instantiate it. There's nothing within Filesystem to create an instance of. There's no defined constructor and no properties to set. In fact only a single static property exists within the class to store the last encountered error. It simply doesn't make any sense. It's especially curious considering the `Path` class that's included with `Filesystem` is itself a static class.

This fork eliminates that nonsense by making everything static:

```
use MensBeam\Filesystem as Fs;
Fs::chmod('/path/to/file', 0600);
```

Note
----

[](#note)

This library uses polyfills for `ext-ctype` and `ext-mbstring`. If you have these extensions installed the polyfills won't run. However, if you don't want the polyfills needlessly installed you can do this in your `composer.json`:

```
{
    "require": {
        "ext-ctype": "*",
        "ext-mbstring": "*"
    },
    "provide": {
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-mbstring": "*"
    }
}
```

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance42

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

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

Every ~330 days

Total

3

Last Release

466d ago

### Community

Maintainers

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

---

Top Contributors

[![dustinwilson](https://avatars.githubusercontent.com/u/1885928?v=4)](https://github.com/dustinwilson "dustinwilson (5 commits)")

---

Tags

filefilesystempath

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k591.0M4.7k](/packages/vlucas-phpdotenv)[symfony/symfony

The Symfony PHP framework

31.0k86.0M2.1k](/packages/symfony-symfony)[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.3k436.3M5.2k](/packages/twig-twig)[symfony/filesystem

Provides basic utilities for the filesystem

4.6k656.7M2.8k](/packages/symfony-filesystem)[symfony/dom-crawler

Eases DOM navigation for HTML and XML documents

4.0k372.6M1.9k](/packages/symfony-dom-crawler)[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k707.8M663](/packages/symfony-string)

PHPackages © 2026

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