LaravelPackages.net
Acme Inc.
Toggle sidebar
gming/qiniu-oss-for-laravel

390
3
v1.0.4
About gming/qiniu-oss-for-laravel

gming/qiniu-oss-for-laravel is a Laravel package. It currently has 3 GitHub stars and 390 downloads on Packagist (latest version v1.0.4). Install it with composer require gming/qiniu-oss-for-laravel. Discover more Laravel packages by gming or browse all Laravel packages to compare alternatives.

Last updated

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()
Comments