Adapter Chain for the League\Flysystem filesystem abstraction, so the same method can be called in multiple adapters
Code information:
Package information:
<?php
use League\Flysystem\Filesystem;
use Brofist\Flysystem\Adapter\Chain;
$chain = new Chain([$localAdapter]);
$chain->append($ftpAdapter);
$filesystem = new Filesystem($chain);
$filesystem->write('path', 'contents'); // will write locally and to the ftp
composer require brofist/filesystem-adapter-chain
Here is the issue tracker.