https://github.com/dhivehi/alldrives
PHP connector for online drives
https://github.com/dhivehi/alldrives
gdrive google odrive onedrive
Last synced: about 1 year 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-29T09:28:57.000Z (almost 9 years ago)
- Last Synced: 2025-03-20T22:53:59.529Z (over 1 year ago)
- Topics: gdrive, google, odrive, onedrive
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- 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");
```