2017 © Pedro Peláez
 

yii2-extension yii2-qiniu

yii2上传到七牛云存储

image

hongyukeji/yii2-qiniu

yii2上传到七牛云存储

  • Tuesday, March 21, 2017
  • by hongyukeji
  • Repository
  • 0 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-qiniu

file upload for Yii Framework 2, (*1)

php > 5.5, (*2)

How to install?, (*3)

To use this extension, you may insert the following code:

Get it via composer by adding the package to your composer.json:, (*4)

{
  "require": {
    "hongyukeji/yii2-qiniu": "dev-master"
  }
}

```php php composer.phar update, (*5)


Usage ----- ```php <?php $ak = 'sss'; $sk = 'sss'; $domain = 'http://demo.domain.com/'; $bucket = 'demo'; use hongyukeji\qiniu\Qiniu; $qiniu = new Qiniu($ak, $sk,$domain, $bucket); $key = time(); $qiniu->uploadFile($_FILES['tmp_name'],$key); $url = $qiniu->getLink($key);

The Versions

21/03 2017

dev-master

9999999-dev

yii2上传到七牛云存储

  Sources   Download

MIT

The Requires

 

upload yii qiniu

21/03 2017

1.0.0

1.0.0.0

yii2上传到七牛云存储

  Sources   Download

MIT

The Requires

 

upload yii qiniu