Download the PHP package wangsucs/wcs-sdk-php without Composer

On this page you can find all versions of the php package wangsucs/wcs-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wcs-sdk-php

开发准备

安装说明

  1. 通过composer管理项目依赖

  2. 也可下载PHP SDK 后,手动导入

  3. PHP SDK加入了并发机制,网络情况不理想时可能出现并发原因导致的异常,可使用无并发机制的简化版

初始化配置说明

用户接入网宿云存储时,需要使用一对有效的AK和SK进行签名认证,并填写“上传域名”和“管理域名”等信息进行文件操作。配置信息只需要在整个应用程序中初始化一次即可,具体操作如下:

功能说明

普通上传

普通上传采用表单上传的方式就文件直传到网宿云存储,建议文件小于20M时采用这种上传方式。普通上传支持客户自定义回调通知内容、网页跳转地址和预处理等操作

范例:

命令行测试

分片上传

分片上传,分片上传大致流程如下:

  1. mkblk(每一块上传前必须先mkblk操作,服务器返回第一片ctx)
  2. bput(mkblk之后进行bput操作,上传每一片附带上一片的ctx并返回当前的ctx)
  3. mkfile(当文件上传完毕,进行mkfile操作,附带每一块的最有一片ctx信息)

注意:

变量说明:

范例:

资源管理

提供对文件的基本操作

删除文件

范例

命令行测试

获取文件信息

范例

命令行测试

列举资源

范例

命令行测试

更新镜像资源

范例

命令行测试

移动资源

范例

命令行测试

复制资源

范例

命令行测试

获取音视频元数据

范例

命令行测试

获取音视频简单元数据

范例

命令行测试

设置文件保存期限

范例:

命令行测试

音视频操作

fops操作
fops查询

高级资源管理

支持对文件进行异步资源管理操作 1.抓取资源 2.复制资源 3.移动资源 4.删除资源 5.按前缀删除资源 6.fmgr任务查询

抓取资源
复制资源
移动资源
删除资源
按前缀删除资源
多文件压缩
fmgr任务查询

etag计算

通过SDK提供的方法计算本地文件的etag,可以和上传成功时服务端响应的etag对比来校验已上传成功文件的完整性


All versions of wcs-sdk-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
jkuchar/bigfiletools Version 1.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wangsucs/wcs-sdk-php contains the following files

Loading the files please wait ....