phatnt93/php_google_drive_sync
最新稳定版本:v1.0.0
Composer 安装命令:
composer require phatnt93/php_google_drive_sync
包简介
PHP Google Drive Sync
README 文档
README
Sync files in folder.
Requirement
- Google Client API and service_account.json file
- PHP >= 8.0
Install with composer
composer require phatnt93/php_google_drive_sync
Example
See example:
<?php use PhpGoogleDriveSync\Sync; define('BASE_PATH', __DIR__); require BASE_PATH . '/../vendor/autoload.php'; $folderId = '1UlcKImBa8-yGQQNalHeQlx5N9DJ523nM'; $sync = new Sync([ 'credential_account' => BASE_PATH . '/service_account.json' ]); $sync->initGoogleClient(); if ($sync->hasError()) { throw new \Exception($sync->getError()); } $sync->syncFolder(BASE_PATH . '/folder1', $folderId);
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-18