league/flysystem-replicate-adapter

Flysystem adapter for Replica's

Installs: 2 685 524

Dependents: 14

Suggesters: 7

Security: 0

Stars: 25

Watchers: 5

Forks: 12

Open Issues: 2

pkg:composer/league/flysystem-replicate-adapter

1.0.1 2015-08-18 21:07 UTC

This package is auto-updated.

Last update: 2025-10-06 11:20:55 UTC


README

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);