thephpleague / flysystem-replicate-adapter

Flysystem Adapter Decorator for Replicating Filesystems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flysystem Adapter for Replication.

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

Installation

composer require league/flysystem-replicate-adapter

Usage

$source = new League\Flysystem\Adapter\AwsS3(...);
$replica = new League\Flysystem\Adapter\Local(...);
$adapter = new League\Flysystem\Replicate\ReplicateAdapter($source, $replica);

What's cool about this is that you can chain them to replicate to more then 1 other storage system.

$adapter = new League\Flysystem\Replicate\ReplicateAdapter($source, $replica);

$anotherReplica = new League\Flysystem\Adapter\Dropbox(...);
$adapter = new League\Flysystem\Replicate\ReplicateAdapter($adapter, $anotherReplica);

About

Flysystem Adapter Decorator for Replicating Filesystems.


Languages

Language:PHP 100.0%