Looking to hire Laravel developers? Try LaraJobs

qiniu-oss-for-laravel maintained by gming

Author
Last update
2018/05/31 03:47 (dev-master)
Links
Downloads
390

Comments
comments powered by Disqus

qiniu-oss-for-laravel

Installation

$ composer require gming/qiniu-oss-for-laravel --prefer-source

Then add the service provider to config/app.php

Gming\QiniuOss\QiniuOssServiceProvider::class

Publish the config file:

$ php artisan vendor:publish --provider='Gming\QiniuOss\QiniuOssServiceProvider' 

Finally, add feature trait into class:

use Gming\QiniuOss\Traits\QiniuOss;

class Example extends ExampleParent
{
    use QiniuOss;
}

All available APIs are listed below.

QiniuOss

\Gming\QiniuOss\Traits\QiniuOss

$this->uploadCertificate($fileUrl, $maxFileSize, $ttl = 3600, $customParam = '')
$this->fileInfo($fileUri, $fileName = '')
$this->fileBaseUrl()