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

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

marko/filesystem-local
======================

Local filesystem driver for Marko Framework

0.7.0(1mo ago)043MITPHPPHP ^8.5

Since Mar 25Pushed 2w agoCompare

[ Source](https://github.com/marko-php/marko-filesystem-local)[ Packagist](https://packagist.org/packages/marko/filesystem-local)[ RSS](/packages/marko-filesystem-local/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (4)Versions (18)Used By (0)

marko/filesystem-local
======================

[](#markofilesystem-local)

Local filesystem driver--reads and writes files on disk with path traversal protection and atomic writes.

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

[](#installation)

```
composer require marko/filesystem-local
```

This automatically installs `marko/filesystem`. Requires the `ext-fileinfo` PHP extension.

Quick Example
-------------

[](#quick-example)

```
use Marko\Filesystem\Contracts\FilesystemInterface;

class ReportService
{
    public function __construct(
        private FilesystemInterface $filesystem,
    ) {}

    public function generateReport(
        string $name,
        string $contents,
    ): void {
        $this->filesystem->write(
            "reports/$name.pdf",
            $contents,
            ['visibility' => 'private'],
        );
    }
}
```

Documentation
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/filesystem-local](https://marko.build/docs/packages/filesystem-local/)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance93

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Recently: every ~9 days

Total

16

Last Release

53d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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