-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 21e4ba9
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php namespace Inetis\KdriveAdapter; | ||
|
||
use System\Classes\PluginBase; | ||
|
||
/** | ||
* KdriveAdapatater Plugin Information File | ||
*/ | ||
class Plugin extends PluginBase | ||
{ | ||
/** | ||
* Returns information about this plugin. | ||
* | ||
* @return array | ||
*/ | ||
public function pluginDetails() | ||
{ | ||
return [ | ||
'name' => '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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"infomaniak/laravel-kdrive": "^1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.1: First version of KdriveAdapatater |