Skip to content

yoorxee/yii2-qiniu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-qiniu

file upload for Yii Framework 2

php > 5.5

How to install? To use this extension, you may insert the following code:

Get it via composer by adding the package to your composer.json:

{
  "require": {
    "crazyfd/yii2-qiniu": "dev-master"
  }
}
php composer.phar update

Usage

<?php 
use crazyfd\qiniu\Qiniu;
$qiniu = new Qiniu($ak, $sk,$domain, $bucket);
$key = time();
$qiniu->uploadFile($_FILES['tmp_name'],$key);
$url = $qiniu->getLink($key);

About

Yii上传到七牛存储

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%