srmklive / flysystem-dropbox-v2
Flysystem Adapter for Dropbox API v2
Installs: 160 231
Dependents: 11
Suggesters: 10
Security: 0
Stars: 20
Watchers: 4
Forks: 8
Open Issues: 0
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ^6.0|^7.0
- league/flysystem: ~1.0
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.7|^6.0|^7.0
README
This package contains a Flysystem adapter for Dropbox API v2.
Credits
This package is direct port of Flysystem Dropbox by Freek Van der Herten with support for PHP 5.5 & 5.6.
Installation
You can install the package via composer:
composer require srmklive/flysystem-dropbox-v2
Usage
The first thing you need to do is get an authorization token at Dropbox. A token can be generated in the App Console for any Dropbox API app. You'll find more info at the Dropbox Developer Blog.
use League\Flysystem\Filesystem; use Srmklive\Dropbox\Client\DropboxClient; use Srmklive\Dropbox\Adapter\DropboxAdapter; $client = new DropboxClient($authorizationToken); $adapter = new DropboxAdapter($client); $filesystem = new Filesystem($adapter);
Testing
$ composer test