mmdsOss/README.md

38 lines
509 B
Markdown
Raw Normal View History

2022-06-14 08:10:10 +00:00
# mmds oss 上传组件使用
本组件依赖于hyperf 2.0
2022-06-14 07:49:44 +00:00
2022-06-14 08:10:10 +00:00
## 安装
### 1.设置仓库
```
{
"repositories": [{
"type": "composer",
"url": "http://composer.zyimm.com"
}]
}
```
### 2.安装依赖
```
composer require zyimm/hyperf-mmds-oss
2022-06-14 07:49:44 +00:00
```
2022-06-14 08:10:10 +00:00
### 3.发布配置
```
php bin/hyperf.php vendor:publish zyimm/hyperf-mmds-oss
2022-06-14 07:49:44 +00:00
```
2022-06-14 08:10:10 +00:00
### 4.使用
```php
class TestController extends AbstractController
{
public function upload()
{
return make(Oss::class)->upload();
}
}
```