yii2-extension yii2-qiniu
yii2上传到七牛云存储
crazyfd/yii2-qiniu
yii2上传到七牛云存储
- Wednesday, January 3, 2018
- by crazyfd
- Repository
- 4 Watchers
- 36 Stars
- 3,194 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 20 Forks
- 3 Open issues
- 5 Versions
- 8 % Grown
文件上传到七牛
file upload for qiniu, (*1)
最近会调整版本, (*2)
{
"require": {
"crazyfd/yii2-qiniu": "*"
}
}
```php
composer install, (*3)
Usage
-----
```php
<?php
$ak = 'sss';
$sk = 'sss';
$domain = 'http://demo.domain.com/';
$bucket = 'demo';
$zone = 'south_china';
use crazyfd\qiniu\Qiniu;
$qiniu = new Qiniu($ak, $sk,$domain, $bucket,$zone);
$key = time();
$key .= strtolower(strrchr($_FILES['name'], '.'));
$qiniu->uploadFile($_FILES['tmp_name'],$key);
$url = $qiniu->getLink($key);
dev-master
9999999-dev
yii2上传到七牛云存储
Sources
Download
MIT
The Requires
by
crazyfd
upload
yii
qiniu
1.0.4
1.0.4.0
yii2上传到七牛云存储
Sources
Download
MIT
The Requires
by
crazyfd
upload
yii
qiniu
1.0.3
1.0.3.0
yii2上传到七牛云存储
Sources
Download
MIT
The Requires
by
crazyfd
upload
yii
qiniu
1.03
1.03.0.0
yii2上传到七牛云存储
Sources
Download
MIT
The Requires
by
crazyfd
upload
yii
qiniu
v1.0.2
1.0.2.0
yii2上传到七牛云存储
Sources
Download
MIT
The Requires
by
crazyfd
upload
yii
qiniu