srmklive/flysystem-dropbox-v2
Dropbox V2 adapter for Flysystem, enabling Laravel/PHP apps to store, read, and manage files in Dropbox via the Flysystem filesystem API. Supports common operations like upload/download, listing, deletion, and metadata handling.
This package contains a Flysystem adapter for Dropbox API v2.
This package is direct port of Flysystem Dropbox by Freek Van der Herten with support for PHP 5.5 & 5.6.
You can install the package via composer:
composer require srmklive/flysystem-dropbox-v2
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);
$ composer test
How can I help you explore Laravel packages today?