elgigi / flysystem-useful-adapters
Useful adapters for Flysystem PHP library
Installs: 1 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
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.