Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhivehi/alldrives
PHP connector for online drives
https://github.com/dhivehi/alldrives
gdrive google odrive onedrive
Last synced: 26 days ago
JSON representation
PHP connector for online drives
- Host: GitHub
- URL: https://github.com/dhivehi/alldrives
- Owner: dhivehi
- Created: 2016-12-13T18:08:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-29T09:28:57.000Z (over 7 years ago)
- Last Synced: 2024-10-14T19:44:58.506Z (2 months ago)
- Topics: gdrive, google, odrive, onedrive
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# allDrives
A very simple drive client in PHP## Usage
```php
$gdrive = new Dhivehi\gDrive();
//oneDrive
//$odrive = new Dhivehi\oDrive();
//source path, dest path - returns FILE_ID on success
$gdrive->copy("/local/path/to/file.db", "/new/path/in/gdrive/to/file.db");
//returns directory listing
$gdrive->scandir("/path/to/folder/");
//recursive directory creation - returns FOLDER_ID on success
$gdrive->mkdir("/www/my/test");
```