mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
b45cfec305
Usage
-----
```
composer require barryvdh/elfinder-flysystem-driver
composer require nao-pon/flysystem-google-drive:~1.1
google/apiclient:~2.0@rc
```
```php
// Load composer autoloader
require 'vender/autoload.php';
// Enable Google Drive as Netmount driver
include_once
dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinderFlysystemGoogleDriveNetmount.php';
define('ELFINDER_GOOGLEDRIVE_CLIENTID', 'YOUR CLIENT ID');
define('ELFINDER_GOOGLEDRIVE_CLIENTSECRET', 'YOUR CLIENT SECRET');
```
Add "YOUR_CONNECTOR_URL(connector.php)?cmd=netmount&protocol=googledrive&host=1"
to "Authorized redirect URIs" in "Credentials" on Google API Manager.