2017 © Pedro Peláez
 

yii2-extension cos

yii2上传文件到腾讯云对象存储组件

image

xplqcloud/cos

yii2上传文件到腾讯云对象存储组件

  • Saturday, November 25, 2017
  • by q490880
  • Repository
  • 1 Watchers
  • 2 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 11 % Grown

The README.md

yii2-qcloud-cos

yii2上传文件到腾讯云对象存储组件, (*1)

CHANGE LOG, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require xplqcloud/cos

or add, (*5)

"xplqcloud/cos": "*"

to the require section of your composer.json., (*6)

Configuration

To use this extension, simply add the following code in your application configuration:, (*7)

return [
    //....
    'components' => [
        'cos'=>[
            'class'=>'xplqcloud\cos\Cos',
            'app_id' => 'app_id',
            'secret_id' => 'secret_id',
            'secret_key' => 'secret_key',
            'region' => 'region',
            'bucket'=>'bucket',
            'insertOnly'=>true,
            'timeout' => 200
        ],
    ],
];

[操作说明]

//上传文件
\Yii::$app->cos->upload($src, $dst);

//删除文件
\Yii::$app->cos->delFile($dst);

//创建文件夹
\Yii::$app->cos->delFolder($folder);

//删除文件夹
\Yii::$app->cos->delFile($folder);

//获取文件夹列表
\Yii::$app->cos->listFolder($folder);

The Versions

25/11 2017

dev-master

9999999-dev

yii2上传文件到腾讯云对象存储组件

  Sources   Download

MIT

The Requires

 

by XuPengLiang

yii2 cos tencentyun

25/11 2017

v0.1.2

0.1.2.0

yii2上传文件到腾讯云对象存储组件

  Sources   Download

MIT

The Requires

 

by XuPengLiang

yii2 cos tencentyun

25/11 2017

v0.1.1

0.1.1.0

yii2上传文件到腾讯云对象存储组件

  Sources   Download

MIT

The Requires

 

by XuPengLiang

yii2 cos tencentyun

25/11 2017

v0.1.0

0.1.0.0

yii2上传文件到腾讯云对象存储组件

  Sources   Download

MIT

The Requires

 

by XuPengLiang

yii2 cos tencentyun