codemonster-ru/filesystem

Filesystem storage primitives for Annabel applications.

Maintainers

Package info

github.com/codemonster-ru/filesystem

pkg:composer/codemonster-ru/filesystem

Statistics

Installs: 68

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-06-10 14:37 UTC

This package is not auto-updated.

Last update: 2026-06-11 13:39:05 UTC


README

Filesystem storage primitives for Annabel applications.

Installation

composer require codemonster-ru/filesystem

Usage

use Codemonster\Filesystem\FilesystemManager;

$storage = new FilesystemManager([
    'default' => 'local',
    'disks' => [
        'local' => [
            'driver' => 'local',
            'root' => __DIR__ . '/storage/app',
        ],
    ],
]);

$disk = $storage->disk();
$disk->put('reports/monthly.txt', 'Report');

echo $disk->get('reports/monthly.txt');

LocalFilesystem protects its configured root and rejects paths that escape it.

Annabel integration

codemonster-ru/annabel registers FilesystemManager, FilesystemInterface, and the storage() helper through FilesystemServiceProvider.