Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pvullioud committed Mar 3, 2020
0 parents commit 21e4ba9
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Plugin.php
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);
}
}
36 changes: 36 additions & 0 deletions README.md
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).


5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"infomaniak/laravel-kdrive": "^1.0"
}
}
1 change: 1 addition & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.1: First version of KdriveAdapatater

0 comments on commit 21e4ba9

Please sign in to comment.