PHPackages                             nex-otaku/minimal-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. nex-otaku/minimal-filesystem

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

nex-otaku/minimal-filesystem
============================

Minimal Filesystem

2.0.0(4y ago)81.1kMITPHPPHP ^7.4|^8.0

Since Jun 10Pushed 1y agoCompare

[ Source](https://github.com/Nex-Otaku/minimal-filesystem)[ Packagist](https://packagist.org/packages/nex-otaku/minimal-filesystem)[ RSS](/packages/nex-otaku-minimal-filesystem/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

 [![](https://github.com/Nex-Otaku/minimal-filesystem/raw/master/img/logo.png?raw=true)](https://github.com/Nex-Otaku/minimal-filesystem/blob/master/img/logo.png?raw=true)

Minimal Filesystem
==================

[](#minimal-filesystem)

### Zero dependency. Small and powerful.

[](#zero-dependency-small-and-powerful)

Installation
------------

[](#installation)

The preferred way to install is through [composer](http://getcomposer.org/download/).

```
composer require nex-otaku/minimal-filesystem

```

Alternatively, you can just copy-paste source file to your project. It has no dependencies and should work just fine.

Examples
--------

[](#examples)

```
$fs = new \NexOtaku\MinimalFilesystem\Filesystem();

// List all files in directory
var_dump($fs->listFiles('/var/www'));

// Search all TXT files in directory
var_dump($fs->searchFiles('/var/www', '*.txt'));

// Read file
echo $fs->readFile('/var/log/my-app.log');

// Write file
$fs->writeFile('/var/etc/my-app.conf', json_encode(['favoriteCoffee' => 'Double Espresso']));

// Append to file
$fs->appendToFile('/var/log/my-app.log', 'Logging is easy!');
```

Filesystem commands
-------------------

[](#filesystem-commands)

### Directories

[](#directories)

- createDirectory
- getCurrentDirectory
- existsDirectory
- isDirectory

### Files

[](#files)

- writeFile
- appendToFile
- isReadableFile
- readFile
- renameFile
- deleteFile
- existsFile
- isFile

### Paths

[](#paths)

- exists

### Listing, searching:

[](#listing-searching)

- listFiles
- searchFiles
- searchFilesRecursively

Questions? Ask!
---------------

[](#questions-ask)

Telegram: **[@nex\_otaku](https://t.me/nex_otaku)**

Email: ****

License
-------

[](#license)

[![License](https://camo.githubusercontent.com/1e1cb7bae9fc55a01fc5443d26e358dc21c129253bcfa9841db85c4f25aa2ecf/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)](http://badges.mit-license.org)

- **[MIT license](http://opensource.org/licenses/mit-license.php)**
- Copyright 2021 © Nex Otaku.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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 ~1 days

Total

2

Last Release

1796d ago

Major Versions

1.0.0 → 2.0.02021-06-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca89988119804ba6356790354d587c09d4bca9e539760adb17f067009bdd4903?d=identicon)[Nex-Otaku](/maintainers/Nex-Otaku)

---

Top Contributors

[![Nex-Otaku](https://avatars.githubusercontent.com/u/2260071?v=4)](https://github.com/Nex-Otaku "Nex-Otaku (11 commits)")

---

Tags

filesystempathfiledirectoryfs

### Embed Badge

![Health badge](/badges/nex-otaku-minimal-filesystem/health.svg)

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

###  Alternatives

[adlawson/vfs

Virtual file system

300433.0k21](/packages/adlawson-vfs)[wikimedia/relpath

Work with file paths to join or find the relative path

11894.3k2](/packages/wikimedia-relpath)[internal/path

Type-safe, immutable file path library with cross-platform support and automatic normalization.

1137.7k3](/packages/internal-path)

PHPackages © 2026

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