flash20/yii2-qiniu

yii2上传到七牛云存储,修复原来bug

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2018-03-24 11:51 UTC

This package is not auto-updated.

Last update: 2024-10-05 00:35:34 UTC


README

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());