Skip to content

spjoshis/File-Uploader-To-Google-Drive-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub issues GitHub stars GitHub license

File-Uploader-To-Google-Drive-PHP

Upload File to Google Drive Using PHP

Author : Gopal Joshi
Usage:

Update Composer

$ composer update

Generate Google Secret File from https://console.developers.google.com/ and save it in `secrets` folder.

Include upload.php

<?php
  include 'upload.php';
  $drive = new GoogleDrive();
  $file = $drive->upload('files/', 'photo.gif');
  if (!empty($file->id)) {
    printf("File Uploaded Successfully! [ID: %s\n", $file->id.']');
  }
?>

About

Upload File to Google Drive Using PHP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages