承接 edrard/phpnextcloud 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-01