PHPackages                             kanel/dropbox - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kanel/dropbox

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kanel/dropbox
=============

A simple dropbox sdk. one feature at a time.

0.1.1(8y ago)014PHPPHP &gt;=7.0

Since Jan 28Pushed 8y agoCompare

[ Source](https://github.com/elkaadka/DropBox)[ Packagist](https://packagist.org/packages/kanel/dropbox)[ RSS](/packages/kanel-dropbox/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

DropBox Api Client
==================

[](#dropbox-api-client)

End points are added one at the time, if you need one, shoot me an email or make a pull request, i'll be glad to add it or check your PR.

How it works
------------

[](#how-it-works)

The client is the main DropBox API. It takes the access token as the only parameter

```
$client = new \Kanel\DropBox\Client('access_token');
```

1. Upload
---------

[](#1-upload)

This call uploads a file from your disk to dropbox

If the file is &lt;= 150Mb, it will be uploaded using this end point :

If the file is &gt; 150Mb an upload session is automatically created using the following end points :

[https://www.dropbox.com/developers/documentation/http/documentation#files-upload\_session-start](https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start)[https://www.dropbox.com/developers/documentation/http/documentation#files-upload\_session-append\_v2](https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append_v2)[https://www.dropbox.com/developers/documentation/http/documentation#files-upload\_session-finish](https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish)

### 1.1 Basic upload

[](#11-basic-upload)

```
$client = new Client('access_token');
$client->upload('/path/to/your/file', 'path/folder/dropbox');
```

Note that if the dropBox folder path is not specified, it defaults to / (root of your application folder)

### 1.2 Upload with parameters

[](#12-upload-with-parameters)

Dropbox offers some upload parameters you might want to use when uploading a file. You can use the UploadParameters class:

```
$client = new Kanel\DropBox\Client('access_token');
$uploadParameter = new \Kanel\DropBox\Parameters\UploadParameters();
$uploadParameter->setAutoRenameFile(true);
$client->upload('/path/to/your/file', 'path/folder/dropbox', $uploadParameter);
```

The parameters that can be edited from the parameters are all listed here : You can check the class Kanel\\DropBox\\Parameters\\UploadParameters for more info too

One of the most important parameter here is $chunksSize This parameter allows you to change the size of chunks to upload when the file exceeds 150Mb.

If the file is &gt; 150Mb the file will be split in chunks of $chunksSize and ech chunk uploaded using sessions

```
$client = new Kanel\DropBox\Client('access_token');
$uploadParameter = new \Kanel\DropBox\Parameters\UploadParameters();
$uploadParameter->setChunksSize(10485760);
$client->upload('/path/to/your/file', 'path/folder/dropbox', $uploadParameter);
```

In this example, if the file is &gt; 150Mb, it will be split in 10Mb chunks and each chunk uploaded separately.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3029d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3215e882ee8ae39a8b904d0958420f68bf23b2cf0e22175d5a61513f98e6ef64?d=identicon)[elkaadka](/maintainers/elkaadka)

---

Top Contributors

[![elkaadka](https://avatars.githubusercontent.com/u/24205608?v=4)](https://github.com/elkaadka "elkaadka (5 commits)")

### Embed Badge

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

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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