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 2w 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 21% 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

3076d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[shlinkio/shlink

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

5.1k5.2k](/packages/shlinkio-shlink)

PHPackages © 2026

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