Skip to content

fredmarmillod/flysystem-kdrive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flysystem adapter for Infomaniak kDrive

Latest Version on Packagist Software License Total Downloads

This package contains a Flysystem adapter for Infomaniak kDrive. It is built on top of the Flysystem WebDAV adapter.

Installation

Via Composer

composer require infomaniak/flysystem-kdrive

Credentials

To be able to connect to your kDrive, you'll need the following information.

  1. Your kDrive ID (Find your kDrive ID)
  2. Your login email address (the one you'd use on https://manager.infomaniak.com)
  3. A unique application password (Generate an application password)

Find your kDrive ID

  1. Connect to your kDrive directly on Infomaniak
  2. Find your drive's ID in the URL : https://drive.infomaniak.com/app/drive/[ID]/files

Usage

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);

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.

About

A flysystem adapter for Infomaniak kDrive.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%