Skip to content

Commit 48a0392

Browse files
committed
Version 1.0.1
0 parents  commit 48a0392

File tree

10 files changed

+746
-0
lines changed

10 files changed

+746
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

LICENCE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# MIT license
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

Plugin.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
namespace Renatio\DropboxAdapter;
4+
5+
use Renatio\DropboxAdapter\Providers\DropboxServiceProvider;
6+
use System\Classes\PluginBase;
7+
8+
/**
9+
* Class Plugin
10+
* @package Renatio\DropboxAdapter
11+
*/
12+
class Plugin extends PluginBase
13+
{
14+
15+
/**
16+
* @return array
17+
*/
18+
public function pluginDetails()
19+
{
20+
return [
21+
'name' => 'renatio.dropboxadapter::lang.plugin.name',
22+
'description' => 'renatio.dropboxadapter::lang.plugin.description',
23+
'author' => 'Renatio',
24+
'icon' => 'icon-dropbox',
25+
'homepage' => 'http://octobercms.com/plugin/renatio-dropboxadapter',
26+
];
27+
}
28+
29+
/**
30+
* @return void
31+
*/
32+
public function boot()
33+
{
34+
$this->app->register(DropboxServiceProvider::class);
35+
}
36+
37+
}

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Dropbox Adapter Plugin
2+
3+
Dropbox filesystem adapter plugin for OctoberCMS.
4+
5+
## Installation
6+
7+
There are couple ways to install this plugin.
8+
9+
1. Use October [Marketplace](http://octobercms.com/help/site/marketplace) and __Add to project__ button.
10+
2. Use October backend area *Settings > System > Updates & Plugins > Install Plugins* and type __Renatio.DropboxAdapter__.
11+
3. Use `php artisan plugin:install Renatio.DropboxAdapter` command.
12+
4. Use `composer require renatio/dropboxadapter-plugin` in project root.
13+
14+
## Configuration
15+
16+
Add new filesystem disk in `disks` array in `config/filesystems.php`:
17+
18+
```
19+
'dropbox' => [
20+
'driver' => 'dropbox',
21+
'app' => '',
22+
'authorizationToken' => '',
23+
],
24+
```
25+
26+
Create new app and generate authorization token on the [App Console](https://www.dropbox.com/developers/apps) at Dropbox.
27+
28+
In this configuration file you can also set default filesystem and cloud disk.
29+
30+
To use Dropbox as default uploads/media storage for October installation update `config/cms.php`:
31+
32+
```
33+
'storage' => [
34+
35+
'uploads' => [
36+
'disk' => 'dropbox',
37+
'folder' => 'uploads',
38+
'path' => '/storage/app/uploads',
39+
],
40+
41+
'media' => [
42+
'disk' => 'dropbox',
43+
'folder' => 'media',
44+
'path' => '/storage/app/media',
45+
],
46+
47+
],
48+
```
49+
50+
## Support
51+
52+
Please use [GitHub Issues Page](https://github.com/mplodowski/dropboxadapter-plugin/issues) to report any issues with plugin.
53+
54+
> Reviews should not be used for getting support or reporting bugs, if you need support please use the Plugin support link.
55+
56+
## Like this plugin?
57+
58+
If you like this plugin, give this plugin a Like or Make donation with [PayPal](https://www.paypal.me/mplodowski).

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Upgrade guide

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "renatio/dropboxadapter-plugin",
3+
"type": "october-plugin",
4+
"description": "Dropbox filesystem adapter plugin for OctoberCMS",
5+
"homepage": "https://octobercms.com/plugin/renatio-dropboxadapter",
6+
"keywords": ["octobercms-plugin", "octobercms", "php", "laravel", "dropbox"],
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Michal Plodowski",
11+
"email": "[email protected]"
12+
}
13+
],
14+
"require": {
15+
"php": ">=7.0",
16+
"spatie/flysystem-dropbox": "^1.0",
17+
"composer/installers": "~1.0"
18+
}
19+
}

0 commit comments

Comments
 (0)