onlinewebplace/googledrive
Composer 安装命令:
composer require onlinewebplace/googledrive
包简介
A PHP client library for Google Drive
README 文档
README
// =============================================== /**
-
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';
// 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'); // ===============================================
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL
- 更新时间: 2016-06-19