codemonster-ru / filesystem
Filesystem storage primitives for Annabel applications.
v1.0.0
2026-06-10 14:37 UTC
Requires
- php: >=8.2
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.0 || ^12.0
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.