Skip to content

Instantly share code, notes, and snippets.

@frankdejonge
Created October 31, 2014 15:01
Show Gist options
  • Save frankdejonge/98d9029c3736974c060d to your computer and use it in GitHub Desktop.
Save frankdejonge/98d9029c3736974c060d to your computer and use it in GitHub Desktop.
Flysystem Download from FTP
<?php
$ftp = new League\Flysystem\Filesystem(new League\Flysystem\Adapter\Ftp($settings));
$local = new League\Flysystem\Filesystem(new League\Flysystem\Adapter\Local($path));
$local->write($destination, $ftp->read($source));
@SauliusLiausedas
Copy link

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment