thedava/dod-lite-flysystem

为dod-lite提供的Flysystem适配器

v0.1.0 2024-08-09 19:56 UTC

This package is auto-updated.

Last update: 2024-09-09 20:14:36 UTC


README

.github/workflows/tests.yml

Flysystem 提供的 dod-lite 适配器

安装

通过Composer

composer require thedava/dod-lite-flysystem

Flysystem

FlysystemAdapter 使用 League\Flysystem 提供一种简单的方式来存储数据。用法非常简单

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