Download the PHP package tomshaw/laravel-dropbox without Composer
On this page you can find all versions of the php package tomshaw/laravel-dropbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-dropbox
Laravel Dropbox 📂
A Laravel Dropbox API 2.0 client library.
Features
- Customizable Token Storage: User definable token storage adapters to suit your apps needs providing flexibility in how and where you store your tokens.
- Token Refresh Middleware: Automatically handles token refreshing, ensuring your application maintains a valid API connection without manual intervention.
- Laravel Facades Integration: Built using Laravel Facades offering a familiar and simple interface that promotes readability, flexibility, testing and ease of use.
Installation
You can install the package via composer:
Next publish the configuration file:
Run the migration if you wish to use database storage adapter:
Configuration
Here's a breakdown of each configuration option:
The following variables should be set in your
.env
file
-
DROPBOX_CLIENT_ID
: The client ID for your Dropbox application. -
DROPBOX_CLIENT_SECRET
: The client secret for your Dropbox application. -
DROPBOX_REDIRECT_URI
: The URI to redirect to after Dropbox authentication. -
DROPBOX_ACCESS_TOKEN
: This is the access token for Dropbox API requests. -
DROPBOX_ACCESS_TYPE
: This is the access type for the Dropbox application. DROPBOX_ACCESS_SCOPES
: If omitted will request all scopes selected on the Permissions tab.
Developers should review the Dropbox Developer Platform and SDK Documentation for further information.
Basic Usage
Below is a cursory explanation of this repository's usage. Please refer to the appropriate Facade Resource for additional methods and usage.
Verify your apps credentials utilizing the
check
accessorapp
method.Authorizing the application and persisting the token.
Revoking access using the
revoke
accessor.Requesting account information using the
users
accessor.Creating folders using the
files
accessor.Downloading files using the
files
accessor.Uploading files using the
files
accessor.Sharing a link using the
sharing
accessor.
Middleware
Add the included Dropbox middleware
to any routes that require API access.
Requirements
The package is compatible with PHP 8 or later.
Contributing
Please see CONTRIBUTING for details.
Changelog
For changes made to the project, see the Changelog.
License
The MIT License (MIT). See License File for more information.
All versions of laravel-dropbox with dependencies
illuminate/support Version ^10.0|^11.0
guzzlehttp/guzzle Version ^6|^7