thedava / dod-lite-flysystem
A flysystem adapter for dod-lite
v0.1.0
2024-08-09 19:56 UTC
Requires
- php: ^8.1
- league/flysystem: ^3.0
- thedava/dod-lite: ^0.1
Requires (Dev)
- league/flysystem-memory: ^3.0
- pestphp/pest: ^2.28
README
A Flysystem adapter for dod-lite
Installation
via Composer
composer require thedava/dod-lite-flysystem
Flysystem
The FlysystemAdapter
uses the League\Flysystem
to provide a simple way to store data. The usage is pretty simple:
// Use your flysystem instance (e.g. with a LocalFilesystemAdapter) $flysystem = new \League\Flysystem\Filesystem( new \League\Flysystem\Local\LocalFilesystemAdapter( '/path/to/your/storage' ) ); // Store data locally in files using your flysystem instance $documentManager = new \DodLite\DocumentManager( new \DodLite\Extension\Flysystem\Adapter\FlysystemAdapter( $flysystem ) );