elgigi/flysystem-useful-adapters

Useful adapters for Flysystem PHP library

v1.0.1 2024-03-20 14:16 UTC

This package is auto-updated.

Last update: 2024-11-10 23:40:52 UTC


README

Latest Version Software License Build Status Total Downloads

This extension adds some useful adapters for the league/flysystem library.

Installation

You can install the client with Composer:

composer require elgigi/flysystem-useful-adapters

Adapters

FallbackAdapter

The FallbackAdapter adapter allow to write or read on a fallback adapter.

Imagine that your main adapter is a S3 in an unavailable region, to continue to receive files from your customers, you can use a fallback adapter on another region.

LogAdapter

The LogAdapter is compliant with psr/log, and allow to log actions on file systems.

ReadWriteAdapter

The ReadWriteAdapter adapter allow to separate readers and writers adapters.

RetryAdapter

The RetryAdapter adapter allow to retry an action on file system in case of failure, after a delay and X times.