https://github.com/elgigi/flysystemusefuladapters
Useful adapters for Flysystem PHP library.
https://github.com/elgigi/flysystemusefuladapters
flysystem-adapter flysytem php
Last synced: 12 months ago
JSON representation
Useful adapters for Flysystem PHP library.
- Host: GitHub
- URL: https://github.com/elgigi/flysystemusefuladapters
- Owner: ElGigi
- License: mit
- Created: 2024-03-13T17:24:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-22T08:57:31.000Z (about 1 year ago)
- Last Synced: 2025-06-25T20:03:33.619Z (about 1 year ago)
- Topics: flysystem-adapter, flysytem, php
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# FlysytemUsefulAdapters
[](https://github.com/ElGigi/FlysystemUsefulAdapters/releases)
[](LICENSE)
[](https://github.com/ElGigi/FlysystemUsefulAdapters/actions/workflows/tests.yml?query=branch%3Amain)
[](https://packagist.org/packages/elgigi/flysystem-useful-adapters)
This extension adds some useful adapters for the [`league/flysystem`](https://github.com/thephpleague/flysystem) library.
## Installation
You can install the client with [Composer](https://getcomposer.org/):
```bash
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.