hemant-mann/flysystem-dropbox
Composer 安装命令:
composer require hemant-mann/flysystem-dropbox
包简介
The Flysystem Adapter for Dropbox
README 文档
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
统计信息
- 总下载量: 256
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-29