PHP code example of kanel / dropbox

1. Go to this page and download the library: Download kanel/dropbox library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kanel / dropbox example snippets

 php
$client = new \Kanel\DropBox\Client('access_token');
 php
 $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);
 
 php
 $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);