Looking to hire Laravel developers? Try LaraJobs

laraveloss maintained by daviswwang

Description
laravel oss sdk
Author
Last update
2024/10/12 10:49 (dev-master)
License
Links
Downloads
13

Comments
comments powered by Disqus

laravel OSS 扩展包

一款基于阿里云官方oss SDK 适用于laravel 5.x的上传扩展包 注意User:fanxinyu为对象电脑用户名

Install via composer

composer require daviswwang/laraveloss

Run the following command to publish the package config file

php artisan vendor:public --provider="Daviswwang\LaravelOSS\LaravelServiceProvider"

You should now have a config/oss.php file that allows you to configure the basics of this package.

Use it like this

use Daviswwang\LaravelOSS\Facades\LaravelOSS;

$url = LaravelOSS::upload('webGF.png', storage_path('pdf/webGF.png'), 'image/png')