2017 © Pedro Peláez
 

library yii2-qiniu

yii2上传到七牛云存储

image

codewen2018/yii2-qiniu

yii2上传到七牛云存储

  • Monday, December 25, 2017
  • by 80h4ck
  • Repository
  • 1 Watchers
  • 1 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-qiniu


composer.json:, (*1)

{
  "require": {
    "80h4ck/yii2-qiniu": "~1.0.0"
  }
}

Usage

<?php

use 80h4ck\qiniu\Qiniu;
$config = [
'accessKey'=>'xxx',
'secretKey'=>'xxx',
'domain'=>'http://demo.domain.com/',
'bucket'=>'demo',
'area'=>Qiniu::AREA_HUABEI
];



$qiniu = new Qiniu($config);
$key = time();
$qiniu->uploadFile($_FILES['tmp_name'],$key);
$url = $qiniu->getLink($key);

The Versions

25/12 2017

dev-master

9999999-dev https://github.com/codewen2018/yii2-qiniu

yii2上传到七牛云存储

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by codewen2018

upload yii qiniu

22/12 2017

v1.0.0

1.0.0.0

yii2上传到七牛云存储

  Sources   Download

MIT

by Avatar 80h4ck

upload yii qiniu