Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 1.62 KB

readme.md

File metadata and controls

33 lines (23 loc) · 1.62 KB

Flysystem Adapter for Dropbox

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

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);