Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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");
```