library googledrive
A PHP client library for Google Drive
onlinewebplace/googledrive
A PHP client library for Google Drive
- Sunday, October 23, 2016
- by onlinewebplace
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
GoogleDrive2.x
// ===============================================
/**
* # Google Drive volume driver need "google-api-php-client" latest version package"
* * google-api-php-client: https://github.com/google/google-api-php-client
* * copy directory "google-api-php-client" and paste in elFinder php directory
* * Google Drive developer console: https://console.developers.google.com
* * Create login in google developer console and create app and get clientid, clientsecret, redirecturi
* * create new project ->Enable and manage APIs ->Drive API ->Enable ->Goto Credentials
* * Create Credentials ->oAuth Client ->web Applicaton
* */
// Required for Google Drive Netmount
// Installation by composer
// composer require googledrive/googledrive2.x
// Enable network mount
// with autoload
elFinder::$netDrivers['googledrive'] = 'GoogleDrive';
// without autoload
include_once dirname(FILE).DIRECTORY_SEPARATOR.'elFinderVolumeGoogleDrive.class.php';, (*1)
// GoogleDrive Netmount driver need next two settings. You can get at https://console.developers.google.com
// AND reuire regist redirect url to "YOUR_CONNECTOR_URL?cmd=netmount&protocol=googledrive&host=1"
define('ELFINDER_GOOGLEDRIVE_CLIENTID', '');
define('ELFINDER_GOOGLEDRIVE_CLIENTSECRET', '');
define('ELFINDER_GOOGLEDRIVE_GOOGLEAPICLIENT', 'google-api-php-client/vendor/autoload.php');
// ===============================================, (*2)
2.0
2.0.0.0
GoogleDrive PHP Client
Sources
Download
MIT
The Requires
php
client
googledrive