codebridge/transfersh
Composer 安装命令:
composer require codebridge/transfersh
包简介
Easy interaction with the transfer.sh API
关键字:
README 文档
README
Installation
composer require codebridge/transfersh
Code Example
use CodeBridge\Transfer;
$transfer_client = new Transfer();
$file_path = realpath('./whatever.ext');
$download_url = $transfer_client->send($file_path);
Multiple files
use CodeBridge\Transfer;
$transfer_client = new Transfer();
$file_paths = ['./whatever.ext','./whatever2.ext'];
$download_url = $transfer_client->send($file_paths,'custom_zip_name'); //Returns custom_zip_name.zip
More complex example (for self hosted installations)
use CodeBridge\Transfer;
$transfer_client = new Transfer('http', 'yourdomain.com');
$file_path = realpath('./whatever.ext');
$download_url = $transfer_client->send($file_path, 'somecustomname.ext');
统计信息
- 总下载量: 473
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-03