gming / qiniu-oss-for-laravel
Installs: 390
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
pkg:composer/gming/qiniu-oss-for-laravel
Requires
- guzzlehttp/guzzle: ~6.0
README
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()