2017 © Pedro Peláez
 

library qcloud-cos

image

ysandreew/qcloud-cos

  • Tuesday, November 21, 2017
  • by Lov3ling
  • Repository
  • 0 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 31 % Grown

The README.md

QcloudCos

在Laravel中集成腾讯云cos储存扩展, (*1)

安装 composer require ysandreew/qcloud-cos, (*2)

注册服务提供者以及代理, (*3)

"providers" =>[
   Lee\QcloudCos\QcloudCosServiceProvider::class,
],
"aliases" =>[
  'QcloudCos'=>Lee\QcloudCos\Facades\QcloudCos::class
]

发布配置文件至config/qcloud.php, (*4)

php artisan vendor:publish --provider="Lee\QcloudCos\QcloudCosServiceProvider", (*5)

在配置文件添加你的腾讯云app_id以及秘钥, (*6)

return[
    'app_id' => '123456789',
    'secret_id' => 'xxxxxxxxxxxxxxxxxx',
    'secret_key' => 'xxxxxxxxxxxxxxxxxxxx',
    'timeout' => 60
];

配置完成后即可在Laravel中操作Cos存储, (*7)


use Lee\QcloudCos\Facades\QcloudCos;   // · QcloudCos::createFolder('bucketName','folder')

更多方法参照腾讯云cos储存sdk文档, (*8)

The Versions

21/11 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Lov3ling

21/11 2017

0.0

0.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Lov3ling

21/11 2017

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Lov3ling