onlinewebplace/googledrive

A PHP client library for Google Drive

2.1 2016-08-04 11:46 UTC

This package is not auto-updated.

Last update: 2024-09-24 22:26:48 UTC


README

// =============================================== /**

  • Google Drive volume driver need "google-api-php-client" latest version package"

    • copy directory "google-api-php-client" and paste in elFinder php directory
    • 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'); // ===============================================