PHP code example of infomaniak / laravel-kdrive

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


'providers' => [
    \Infomaniak\KDrive\KDriveServiceProvider::class,
],

'disks' => [
    'kdrive' => [
        'driver' => 'kdrive',
        'id' => env('KDRIVE_ID'),
        'username' => env('KDRIVE_USERNAME'),
        'password' => env('KDRIVE_PASSWORD'),
        'prefix' => env('KDRIVE_PREFIX', ''),
    ]
],