PHP code example of infomaniak / flysystem-kdrive

1. Go to this page and download the library: Download infomaniak/flysystem-kdrive 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/ */

    

infomaniak / flysystem-kdrive example snippets


use Infomaniak\KDrive\KDriveAdapter;
use League\Flysystem\Filesystem;

$kDrive = new KDriveAdapter(
    '123456',               // Your kDrive's ID    
    '[email protected]', // Your Infomaniak login email address
    '********************', // Your generated password  
);

$filesystem = new Filesystem($kDrive);