marko / filesystem
Filesystem interfaces and infrastructure for Marko Framework
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/config: 0.0.1
- marko/core: 0.0.1
Requires (Dev)
- marko/testing: 0.0.1
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