Download the PHP package jerray/qcloud-cos-php-sdk without Composer

On this page you can find all versions of the php package jerray/qcloud-cos-php-sdk. 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 qcloud-cos-php-sdk

qcloud-cos-php-sdk

腾讯云对象存储服务 COS PHP SDK

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status

安装

使用方法

创建客户端实例

创建SDK客户端实例。$options中的参数请到腾讯云对象存储的密钥管理页面获取。

各接口返回结果详情参见腾讯云对象存储服务 RESTful API文档

文件操作

完整上传

分片上传(超过一定大小的文件需要使用分片上传)

查询文件

更新文件bizAttr

删除文件

下载文件

目录操作

创建目录

目录列表

更新目录bizAttr

目录查询

删除目录

注意:目录不为空时会删除失败并抛出 jerray\QCloudCos\Exceptions\ClientException 异常

Exceptions

接口请求异常

接口返回4xx错误时,抛出 jerray\QCloudCos\Exceptions\ClientException。 返回5xx错误时, 抛出 jerray\QCloudCos\Exceptions\ServerException。 这两个异常均继承自 jerray\QCloudCos\Exceptions\RequestException

运行时异常

涉及到本地文件读取的接口,如果本地文件不存在或读取失败,会抛出 jerray\QCloudCos\Exceptions\FileNotFoundException。 创建实例时,如果传入的自定义存储(参数store,可选参数)没有实现 jerray\QCloudCos\Contracts\Store 接口, 抛出 jerray\QCloudCos\Exceptions\InvalidStoreInstance 。 这两个异常均继承自 jerray\QCloudCos\Exceptions\RuntimeException

License

MIT


All versions of qcloud-cos-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
guzzlehttp/guzzle Version ~6.2
nesbot/carbon Version ~1.21
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 jerray/qcloud-cos-php-sdk contains the following files

Loading the files please wait ....