PHPackages                             sndsgd/fs - 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. sndsgd/fs

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

sndsgd/fs
=========

A filesystem toolkit for PHP

0.4.5(8y ago)14.0k13MITPHPPHP &gt;=7.0.0

Since Feb 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/sndsgd/fs)[ Packagist](https://packagist.org/packages/sndsgd/fs)[ Docs](https://github.com/sndsgd/fs)[ RSS](/packages/sndsgd-fs/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (24)Used By (3)

sndsgd/fs
=========

[](#sndsgdfs)

[![Latest Version](https://camo.githubusercontent.com/8e4aa0e057f6e0e2c87a018637103ec8314d673fe4eecdc85c1f87634d8579d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736e647367642f66732e7376673f7374796c653d666c61742d737175617265)](https://github.com/sndsgd/fs/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sndsgd/fs/LICENSE)[![Build Status](https://camo.githubusercontent.com/29f282599f37f9015a4be763404b162d19b8116af91c59dca329b158e4c2184a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736e647367642f66732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sndsgd/fs)[![Coverage Status](https://camo.githubusercontent.com/e2b72eb8c843da57dd7eb3cf977e4699e5803064e89d5b561d27c5a9ed9ec683/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f736e647367642f66732e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/sndsgd/fs?branch=master)[![Total Downloads](https://camo.githubusercontent.com/16df54ba01f509c45b30961c198f699fad97e1ccf75f5808610d28d9f3152b6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736e647367642f66732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sndsgd/fs)

A filesystem toolkit for PHP.

Why?
----

[](#why)

The classes in `sndsgd\fs` attempt to simplify tedious filesystem tasks.

```
use \sndsgd\Fs;

# lets assume `/tmp/some` doesn't exist
$path = "/tmp/some/deep/path/file.txt";

# write to a file that doesn't exist in a directory that doesn't exist
$file = Fs::getFile($path);
if ($file->write("the contents...") === false) {
   throw new Exception($file->getError());
}
```

Requirements
------------

[](#requirements)

This project is unstable and subject to changes from release to release. If you intend to depend on this project, be sure to make note of and specify the version in your project's `composer.json`. Doing so will ensure any breaking changes do not break your project.

You need **PHP &gt;= 7.0.0** to use this library.

Install
-------

[](#install)

Install `sndsgd/fs` using [Composer](https://getcomposer.org/).

```
composer require sndsgd/fs

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

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

Recently: every ~74 days

Total

24

Last Release

3163d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.4.0

0.2.0PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![sndsgd](https://avatars.githubusercontent.com/u/5289973?v=4)](https://github.com/sndsgd "sndsgd (58 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sndsgd-fs/health.svg)

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

PHPackages © 2026

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