everth/rclonemanager
Composer 安装命令:
composer require everth/rclonemanager
包简介
A PHP library to manage Rclone configurations and operations.
README 文档
README
Before using this package, ensure the following:
-
Rclone Installed: You must have Rclone installed on your system. You can download it from the official Rclone website.
-
Rclone in PATH: Ensure that the Rclone executable is available in your system's PATH. This allows the package to execute Rclone commands seamlessly.
Usage
To use this package, follow these steps:
-
Install Dependencies: Ensure you have installed all required dependencies using Composer. Run the following command in your terminal:
composer install -
Configuration: Copy the example configuration files from the
config/directory and customize them as needed. For example:cp config/drive.conf.example config/drive.conf -
Include Autoloader: Include the Composer autoloader in your PHP script:
require_once 'vendor/autoload.php';
-
Instantiate Rclone with Configuration: Use the
Rcloneclass and provide the path to your configuration file. For example:use Rclone\Rclone; $rclone = new Rclone('config/drive.conf');
-
Use Basic Commands:
- List Files: To list files in a remote directory:
$files = $rclone->listFiles('remote:path'); print_r($files);
- Copy Files: To copy files from one location to another:
$rclone->copy('source:path', 'destination:path');
- List Files: To list files in a remote directory:
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2025-04-15