league / flysystem-dropbox
Flysystem adapter for Dropbox
Installs: 371 089
Dependents: 24
Suggesters: 11
Security: 0
Stars: 67
Watchers: 13
Forks: 14
Open Issues: 6
Requires
- php: >=5.4.0
- dropbox/dropbox-sdk: ~1.1
- league/flysystem: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.8
README
Installation
composer require league/flysystem-dropbox
Usage
Visit https://www.dropbox.com/developers/apps and get your "App secret".
You can also generate OAuth access token for testing using the Dropbox App Console without going through the authorization flow.
use League\Flysystem\Dropbox\DropboxAdapter; use League\Flysystem\Filesystem; use Dropbox\Client; $client = new Client($accessToken, $appSecret); $adapter = new DropboxAdapter($client, [$prefix]); $filesystem = new Filesystem($adapter);