league/flysystem-replicate-适配器

Flysystem 适配器用于 Replica

1.0.1 2015-08-18 21:07 UTC

This package is auto-updated.

Last update: 2024-09-06 09:03:36 UTC


README

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

安装

composer require league/flysystem-replicate-adapter

使用方法

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

这个功能酷的地方在于你可以将它们链式连接以复制到1个以上的存储系统。

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

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