This project provides option to view files added under google drive and upload files to google drive using OAuth 2.0 Via PHP
- Clone the folder
- Run composer install
- Edit file common.php and add your project base url
- Go to https://console.developers.google.com
- Create a new project in google developer console eg. Google-drive-test
- Go to library and enable Google Drive API
- Go to Credetials and Generate Oauth2.0 client id for Web Application
- Add Authorized url as rg.http://host/google-drive/auth.php and save
- Download Client Credentials json file
- Replace the json/credentials.json file content with your downloaded file's content
- Go to Account settings of your google account and allow less secure apps to access your data
- Edit baseUrl in Common.php
- Run the project