From b721e08b577639683373442cdd8a32e4bea58480 Mon Sep 17 00:00:00 2001 From: zhouyangyang Date: Tue, 14 Jun 2022 16:10:10 +0800 Subject: [PATCH] readme --- README.md | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a5a494..d29513c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,38 @@ -# component-creator +# mmds oss 上传组件使用 +本组件依赖于hyperf 2.0 + +## 安装 + +### 1.设置仓库 +``` +{ + "repositories": [{ + "type": "composer", + "url": "http://composer.zyimm.com" + }] +} +``` +### 2.安装依赖 ``` -composer create-project hyperf/component-creator +composer require zyimm/hyperf-mmds-oss ``` + +### 3.发布配置 +``` +php bin/hyperf.php vendor:publish zyimm/hyperf-mmds-oss +``` + +### 4.使用 +```php + +class TestController extends AbstractController +{ + + public function upload() + { + return make(Oss::class)->upload(); + } +} + +``` \ No newline at end of file