jenszahner/flysystem-fallback-adapter

Flysystem adapter for fallback filesystems

0.2.1 2019-11-13 08:39 UTC

This package is auto-updated.

Last update: 2024-04-13 19:38:06 UTC


README

Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

This adapter has been created to allow using a fallback filesystem for read operations when the files can't be accessed through the main adapter.

Installation

composer require jenszahner/flysystem-fallback-adapter

Usage

$main = new League\Flysystem\Adapter\AwsS3(...);
$fallback = new League\Flysystem\Adapter\Local(...);
$adapter = new Litipk\Flysystem\Fallback\FallbackAdapter($main, $fallback);