marko/filesystem

Filesystem interfaces and infrastructure for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-filesystem

Type:marko-module

pkg:composer/marko/filesystem

Statistics

Installs: 0

Dependents: 3

Suggesters: 1

Stars: 0

0.0.1 2026-03-25 17:53 UTC

This package is auto-updated.

Last update: 2026-03-25 21:07:20 UTC


README

Interfaces for file storage--defines how files are read, written, and organized across any storage backend.

Installation

composer require marko/filesystem

Note: You typically install a driver package (like marko/filesystem-local) which requires this automatically.

Quick Example

use Marko\Filesystem\Contracts\FilesystemInterface;

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

    public function saveDocument(string $name, string $contents): void
    {
        $this->filesystem->write("documents/$name", $contents);
    }
}

Documentation

Full usage, API reference, and examples: marko/filesystem