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. [File &amp; Storage](/categories/file-storage)
4. /
5. mensbeam/filesystem

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

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

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

v2.0.0(1mo ago)01061MITPHPPHP &gt;=8.4

Since Feb 19Pushed 1mo ago2 watchersCompare

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

READMEChangelogDependencies (10)Versions (5)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

47

—

FairBetter than 93% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

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

Every ~408 days

Total

4

Last Release

42d ago

Major Versions

v1.0.2 → v2.0.02026-06-27

PHP version history (2 changes)v1.0.0PHP &gt;=8.1

v2.0.0PHP &gt;=8.4

### 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 (6 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

[symfony/symfony

The Symfony PHP framework

31.4k87.4M2.2k](/packages/symfony-symfony)[twig/twig

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

8.4k473.8M7.6k](/packages/twig-twig)[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.8k796.5M1.5k](/packages/symfony-string)[symfony/validator

Provides tools to validate values

2.7k313.4M4.4k](/packages/symfony-validator)[symfony/doctrine-bridge

Provides integration for Doctrine with various Symfony components

3.2k205.6M927](/packages/symfony-doctrine-bridge)[symfony/form

Allows to easily create, process and reuse HTML forms

2.8k165.6M3.7k](/packages/symfony-form)

PHPackages © 2026

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