thedava/dod-lite-flysystem

A flysystem adapter for dod-lite

v0.0.7 2024-01-06 00:09 UTC

This package is auto-updated.

Last update: 2024-05-06 01:12:16 UTC


README

.github/workflows/tests.yml

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
    )
);