PHPackages                             hakre/dropbox-uploader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. hakre/dropbox-uploader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

hakre/dropbox-uploader
======================

Upload files or strings to Dropbox without the Dropbox API

v1.1.22(11y ago)6156.3k5MITPHPPHP &gt;=5.2.0

Since Aug 24Pushed 11y ago3 watchersCompare

[ Source](https://github.com/hakre/DropboxUploader)[ Packagist](https://packagist.org/packages/hakre/dropbox-uploader)[ Docs](http://github.com/jakajancar/DropboxUploader)[ RSS](/packages/hakre-dropbox-uploader/feed)WikiDiscussions development Synced 6d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Dropbox Uploader
================

[](#dropbox-uploader)

Dropbox Uploader is a PHP class named `DropboxUploader` which can be used to upload files to [Dropbox](http://www.getdropbox.com/), an online file synchronization and backup service.

Its development was started before Dropbox released their API, and to work, it scrapes their website. So you can and probably should use their API now as it is much more stable. It's the [Dropbox Core API in PHP](https://www.dropbox.com/developers/core/start/php).

You can use the Dropbox Uploader to create a file upload form for your website, which uploads files to your dropbox. The [`example.php`](example.php) is a good start; just remove the email/password/destination fields and insert the respective values.

Usage
-----

[](#usage)

```
require 'DropboxUploader.php';

$uploader = new DropboxUploader('email@address.com', 'password');
$uploader->upload('path/to/a/file.txt');

```

For a more complete usage example, see [`example.php`](example.php).

License
-------

[](#license)

Dropbox Uploader is licensed under the [MIT License (`MIT`)](http://spdx.org/licenses/MIT).

Troubleshooting
---------------

[](#troubleshooting)

**I'm getting the following error:**

```
Error: Cannot execute request: SSL certificate problem, verify that the CA cert is OK.⤦
⤥ Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

```

This means that the certificate of the Certification Authority (CA) that Dropbox uses for their SSL certificates is not installed on your system or PHP/cURL is not configured correctly to find it.

**If you ARE the system administrator**, try installing the CA certificates bundle to a system-wide location. If you use a package management system, this will ensure that they are kept up to date automatically. On Debian Linux for example, you can install the package ca-certificates.

**If you are NOT the system administrator**, you can download just [the needed certificate](http://curl.haxx.se/ca/cacert.pem) and point DropboxUploader to it (before calling the *upload()* method):

```
$uploader->setCaCertificateFile("/absolute/path/to/the/cacert.file");

```

It is also possible to do this setting in the PHP ini file for PHP 5.3.7 and above. See [`curl.cainfo`](http://php.net/manual/en/curl.configuration.php) for the ini configuration and look for the `CURLOPT_CAINFO` option on [`curl_setopt` (PHP manual)](http://php.net/manual/en/function.curl-setopt.php).

Developing
----------

[](#developing)

To develop, it is most easy to checkout the [hakre/DropboxUploader](https://github.com/hakre/DropboxUploader) branch:

```
git clone -b development git://github.com/hakre/DropboxUploader
cd DropboxUploader

```

Them retrieve the dependencies using Composer:

```
wget http://getcomposer.org/composer.phar
php composer.phar install

```

### Testsuite

[](#testsuite)

Dropbox Uploader comes with a Phpunit testsuite located in the `test` folder.

To get the testsuite configured, copy `phpunit.xml.dist` to `phpunit.xml` and modify the Dropbox email and password credentials and the SSL certificate store configuration (might be required if not set in PHP ini [`curl.cainfo`](http://php.net/manual/en/curl.configuration.php)).

If you want to use any of these settings from the commandline, set an environment variable with the same name. Environment variables have a higher priority than the XML configuration;

```
export Dropbox_Credential_Password=your-password-goes-here

```

You can then invoke the testsuite from the projects root directory:

```
vendor/bin/phpunit test

```

### Branching

[](#branching)

Development is done against [hakre/DropboxUploader](https://github.com/hakre/DropboxUploader), the *development*branch. Create yourself a new branch from it and name it for every non-trivial changes you want to introduce.

Changes are then taken from feature branches into *development* and then into *master*.

Expect the development branch to get some force-pushes, just to keep in mind when your development branch diverges - better give your local branch a different name.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~63 days

Total

4

Last Release

4094d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/378849?v=4)[hakre](/maintainers/hakre)[@hakre](https://github.com/hakre)

---

Top Contributors

[![hakre](https://avatars.githubusercontent.com/u/378849?v=4)](https://github.com/hakre "hakre (45 commits)")[![jakajancar](https://avatars.githubusercontent.com/u/187741?v=4)](https://github.com/jakajancar "jakajancar (4 commits)")[![jongotlin](https://avatars.githubusercontent.com/u/165154?v=4)](https://github.com/jongotlin "jongotlin (1 commits)")[![leesto](https://avatars.githubusercontent.com/u/185741?v=4)](https://github.com/leesto "leesto (1 commits)")[![Mic92](https://avatars.githubusercontent.com/u/96200?v=4)](https://github.com/Mic92 "Mic92 (1 commits)")

---

Tags

uploaddropbox

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hakre-dropbox-uploader/health.svg)

```
[![Health](https://phpackages.com/badges/hakre-dropbox-uploader/health.svg)](https://phpackages.com/packages/hakre-dropbox-uploader)
```

###  Alternatives

[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.4k7.9M13](/packages/kartik-v-bootstrap-fileinput)[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[spatie/flysystem-dropbox

Flysystem Adapter for the Dropbox v2 API

3644.6M68](/packages/spatie-flysystem-dropbox)[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2286.8M95](/packages/kartik-v-yii2-widget-fileinput)[demi/dropbox-backup

Yii2 console command for making site backups and upload it to your dropbox account

102.3k](/packages/demi-dropbox-backup)[marrouchi/upload-crop-image-bundle

Basic server side cropping behavior for Symfony2

121.1k](/packages/marrouchi-upload-crop-image-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
