From 21e4ba9dfc7dcd86e874e55b1322dd7da2bc47e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Andr=C3=A9=20Vullioud?= Date: Tue, 3 Mar 2020 12:16:16 +0100 Subject: [PATCH] Initial commit --- Plugin.php | 35 +++++++++++++++++++++++++++++++++++ README.md | 36 ++++++++++++++++++++++++++++++++++++ composer.json | 5 +++++ updates/version.yaml | 1 + 4 files changed, 77 insertions(+) create mode 100644 Plugin.php create mode 100644 README.md create mode 100644 composer.json create mode 100644 updates/version.yaml diff --git a/Plugin.php b/Plugin.php new file mode 100644 index 0000000..8c3011e --- /dev/null +++ b/Plugin.php @@ -0,0 +1,35 @@ + 'KdriveAdapatater', + 'description' => 'Infomaniak kDrive filesystem adapter plugin for OctoberCMS.', + 'author' => 'Inetis', + 'icon' => 'icon-leaf' + ]; + } + + + /** + * Boot method, called right before the request route. + * + * @return array + */ + public function boot() + { + App::register(KDriveServiceProvider::class); + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..e26179e --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +# Dropbox Adapter Plugin + +Infomaniak [kDrive](https://github.com/Infomaniak/laravel-kdrive) filesystem adapter plugin for OctoberCMS. + +## Configuration + +Add new filesystem disk in `disks` array in `config/filesystems.php`: + +``` +'kdrive' => [ + 'driver' => 'kdrive', + 'id' => ******, + 'username' => ******, + 'password' => ******, + 'prefix' => ******, + ] +``` + +The `KDRIVE_PREFIX` is optional an you may remove it from you `.env` file is you do not use it. This settings allows you to define another folder as your root. + +## Credentials +To be able to connect to your kDrive, you'll need the following information. + +1. 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](https://manager.infomaniak.com/v3/profile/application-password)) + +## Support + +Please use [GitHub Issues Page](https://github.com/mplodowski/dropboxadapter-plugin/issues) to report any issues with plugin. + + +## Author +inetis is a webdesign agency in Vufflens-la-Ville, Switzerland. We love coding and creating powerful apps and sites [see our website](https://inetis.ch). + + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..d8e0392 --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "infomaniak/laravel-kdrive": "^1.0" + } +} diff --git a/updates/version.yaml b/updates/version.yaml new file mode 100644 index 0000000..e7e5e0b --- /dev/null +++ b/updates/version.yaml @@ -0,0 +1 @@ +1.0.1: First version of KdriveAdapatater