yanan / ufile
laravel云上传
dev-master
2020-03-30 07:12 UTC
Requires
- php: >=5.3.9
- laravel/framework: 5.2.*
Requires (Dev)
- php: >=5.3.9
- laravel/framework: 5.2.*
This package is not auto-updated.
Last update: 2025-03-25 06:51:18 UTC
README
项目介绍
laravel 云上传
软件架构
laravel 5.2
安装教程
composer require yanan/ufile:dev-master
然后添加服务: 在 config/app.php添加 Yanan\Ufile\UpFileProvider::class,
和别名的配置: 'ufile' => Yanan\Ufile\UpFileProvider::class,
composer dump-autoload
php artisan vendor:publish –provider=”Yanan\Ufile\UpFileProvider”
使用说明
//执行上传 $ufile = new UpFile(); $put_res = $ufile->putFile($bucket, $key, $res_filename);
//下载文件 $ufile = new UpFile(); $get_res = $ufile->getFile($bucket,$key,$type='public')