edrard/phpnextcloud
最新稳定版本:v0.0.4
Composer 安装命令:
composer create-project edrard/phpnextcloud
包简介
Nextcloud uploader
关键字:
README 文档
README
Simple Php Nextcloud uploader
Attention!!! Package using shell curl to upload files, becouse sometime php curl have problems to upload big files.
$config = array(
'url' => 'https://nextcloud/',
'login' => 'login',
'password' => 'password',
'httpheader' => array('OCS-APIRequest: true')
);
# Uploading file
$uploader = new Uploader($config);
# In fucntion $uploader->uploadFile if third parametr is False, then its not using shell Curl
if($uploader->uploadFile('1500mb.bin','/path/inside/nc')){
#Share File for public
$sharing = new Sharing($config);
$respons = $sharing->share('1500mb.bin','/path/inside/nc');
}
# Delete file
$delete = new Delete($config);
$delete->delete('64mb.bin');
# List folder
$info = new Info($config);
$list = $info->getFolderList();
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-01