hemant-mann / flysystem-dropbox
The Flysystem Adapter for Dropbox
v1.0.5
2022-08-01 04:30 UTC
Requires
- php: >=5.6.0
- kunalvarma05/dropbox-php-sdk: ^0.2.2|^0.3|^0.4
- league/flysystem: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-03-13 02:17:41 UTC
README
This is the Dropbox Adapter for the flysystem based on the v2 API of the Dropbox. This adapter supports PHP5
Usage
Visit https://www.dropbox.com/developers/apps and get your "App secret". You can also generate OAuth2 access token for testing using the Dropbox App Console without going through the authorization flow.
This Adapter uses the Community SDK for connecting to the Dropbox API v2
use Kunnu\Dropbox\Dropbox; use Kunnu\Dropbox\DropboxApp; use League\Flysystem\Filesystem; use HemantMann\Flysystem\Dropbox\Adapter; $app = new DropboxApp($clientId, $clientSecret, $accessToken); $dropboxClient = new Dropbox($app); $adapter = new Adapter($dropboxClient); $filesystem = new Filesystem($adapter);
Tests
composer install bin/phpunit