juampynr / dropbox-api
Installs: 2 278
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Requires
- kunalvarma05/dropbox-php-sdk: ^0.2.1
- vlucas/phpdotenv: ^2.4
This package is auto-updated.
Last update: 2025-02-19 23:25:43 UTC
README
This repository contains a couple scripts to download and upload files regardless of their size.
Installation
- Run
composer require juampynr/dropbox-api
- Run composer install.
- Create a Dropbox application at https://www.dropbox.com/developers/apps/create.
- Copy the .env.example into .env and enter the Dropbox credentials there.
- Try uploading a file:
$ echo "This is some text" > some-text.txt
$ php vendor/juampynr/dropbox-api/dropbox-upload.php some-text.txt
- Verify that the file was uploaded. Now try downloading it:
$ php vendor/juampynr/dropbox-api/dropbox-download.php some-text.txt some-text-downloaded.txt