An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# FlysytemUsefulAdapters

[![Latest Version](http://img.shields.io/packagist/v/elgigi/flysystem-useful-adapters.svg?style=flat-square)](https://github.com/ElGigi/FlysystemUsefulAdapters/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/github/actions/workflow/status/ElGigi/FlysystemUsefulAdapters/tests.yml?branch=main&style=flat-square)](https://github.com/ElGigi/FlysystemUsefulAdapters/actions/workflows/tests.yml?query=branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/elgigi/flysystem-useful-adapters.svg?style=flat-square)](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.