PHP code example of league / flysystem-replicate-adapter
1. Go to this page and download the library: Download league/flysystem-replicate-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
league / flysystem-replicate-adapter example snippets
$source = new League\Flysystem\Adapter\AwsS3(...);
$replica = new League\Flysystem\Adapter\Local(...);
$adapter = new League\Flysystem\Replicate\ReplicateAdapter($source, $replica);
$adapter = new League\Flysystem\Replicate\ReplicateAdapter($source, $replica);
$anotherReplica = new League\Flysystem\Adapter\Dropbox(...);
$adapter = new League\Flysystem\Replicate\ReplicateAdapter($adapter, $anotherReplica);