Skip to content

Instantly share code, notes, and snippets.

@marcusmoore
Forked from frankdejonge/example.php
Last active August 29, 2015 14:08
Show Gist options
  • Save marcusmoore/163f4070add18dacca8b to your computer and use it in GitHub Desktop.
Save marcusmoore/163f4070add18dacca8b to your computer and use it in GitHub Desktop.
<?php
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Dropbox;
use League\Flysystem\Adapter\Local;
$dropbox = new Filesystem(new Dropbox($client, 'dropbox/root/dir'));
$local = new Filesystem(new Local('loca/root/path'));
$dropbox->write('destination.ext', $local->read('relative/path/to/file.ext'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment