spatie/dropbox-api
Minimal PHP client for Dropbox API v2 by Spatie. Provides core endpoints used by their Flysystem Dropbox adapter—create folders, list directories, fetch temporary links, and more. Easy to install via Composer and use with an auth token.
flysystem-dropbox adapter compatibility), fitting Laravel’s service container and facades.retry middleware, custom exceptions)?Spatie\Dropbox\Client as singleton) and facades.spatie/flysystem-dropbox), enabling unified storage handling.spatie/dropbox-api for core operations (e.g., file uploads via Client::upload()).Storage facade (e.g., config/filesystems.php).Client::createSharedLinkWithSettings()).Illuminate\Support\Facades\Http retries).DropboxJob extending ShouldQueue).composer require spatie/dropbox-api..env (e.g., DROPBOX_TOKEN=...).AppServiceProvider:
$this->app->singleton(Client::class, fn() => new Client(config('dropbox.token')));
use Spatie\Dropbox\Facades\Dropbox;
Dropbox::upload('local-path', 'dropbox-path');
Client in unit tests (e.g., using Mockery).throttle middleware).Http::withOptions(['timeout' => 30])).file_get_contents backup).auth:api for token rotation.Notifiable interface.md5_file checks).How can I help you explore Laravel packages today?