league / flysystem-replicate-adapter
Flysystem adapter for Replica's
Installs: 2 289 492
Dependents: 14
Suggesters: 7
Security: 0
Stars: 24
Watchers: 6
Forks: 11
Open Issues: 2
Requires
- php: >=5.4.0
- league/flysystem: ~1.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-06 09:09:40 UTC
README
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);