maa-solutions / flysystem-kdrive
A Flysystem adapter for Infomaniak's kDrive
v1.0.1
2024-11-12 10:56 UTC
Requires
- ext-curl: *
- league/flysystem-webdav: ^3.0
Requires (Dev)
README
This package contains a Flysystem adapter for Infomaniak kDrive. It is built on top of the Flysystem WebDAV adapter.
Installation
Via Composer
composer require maa-solutions/flysystem-kdrive
Credentials
To be able to connect to your kDrive, you'll need the following information.
- Your kDrive ID (Find your kDrive ID)
- Your login email address (the one you'd use on https://manager.infomaniak.com)
- A unique application password (Generate an application password)
Find your kDrive ID
- Connect to your kDrive directly on Infomaniak
- Find your drive's ID in the URL :
https://drive.infomaniak.com/app/drive/[ID]/files
Usage
use MaaSolutions\KDrive\KDriveAdapter; use League\Flysystem\Filesystem; $kDrive = new KDriveAdapter( '123456', // Your kDrive's ID 'john.doe@example.tld', // Your Infomaniak login email address '********************', // Your generated password ); $filesystem = new Filesystem($kDrive);
Examples
Go to the examples directory to find a few examples to get you started.
License
The MIT License (MIT). Please see the LICENSE for more information.