elgigi / flysystem-useful-adapters
Useful adapters for Flysystem PHP library
v1.0.1
2024-03-20 14:16 UTC
Requires
- php: ^8.0
- league/flysystem: ^3.7
- league/flysystem-read-only: ^3.23
Requires (Dev)
- league/flysystem-adapter-test-utilities: ^3.21
- league/flysystem-memory: ^3.24
- phpunit/phpunit: ^9.0 || ^10.0
- psr/log: ^1.0 || ^2.0 || ^3.0
README
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.