flash20 / yii2-qiniu
yii2上传到七牛云存储,修复原来bug
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-22 02:56:32 UTC
README
- @author flash20 2684498887@qq.com
- @version 1.0
file upload for qiniu
最近会调整版本
{ "require": { "flash20/yii2-qiniu": "*" } }
composer install
Usage
<?php 'qiniu'=> [ 'class' => 'flash20\qiniu\Qiniu', 'accessKey' => 'xxx', 'secretKey' => 'xxx', 'domain' => 'http://xxx', 'bucket' => 'xxx', ],
Yii::$app->qiniu->uploadFile($file,time());