PHP Classes

File: libraries/vendor/league/flysystem/docs/adapter/dropbox.md

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/league/flysystem/docs/adapter/dropbox.md   Download  
File: libraries/vendor/league/flysystem/docs/adapter/dropbox.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 7 years ago
Size: 682 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/dropbox/ title: Dropbox Adapter

Dropbox Adapter

Installation

composer require spatie/flysystem-dropbox

Usage

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 Spatie\Dropbox\Client;
use Spatie\FlysystemDropbox\DropboxAdapter;

$client = new Client($authorizationToken);

$adapter = new DropboxAdapter($client);

$filesystem = new Filesystem($adapter);