league/flysystem-replicate-adapter

Flysystem adapter for Replica's

Maintainers

👁 frankdejonge

Package info

github.com/thephpleague/flysystem-replicate-adapter

pkg:composer/league/flysystem-replicate-adapter

Statistics

Installs: 2 980 527

Dependents: 11

Suggesters: 7

Stars: 26

Open Issues: 2

1.0.1 2015-08-18 21:07 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 864e80409c0918b0ed6921c3941247017d9db77c

  • Frank de Jonge <info.woop@frenky.net>

This package is auto-updated.

Last update: 2026-06-06 12:46:45 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);