Go to file
zhouyangyang b721e08b57 readme
2022-06-14 16:10:10 +08:00
.github/workflows first commit 2022-06-14 15:49:44 +08:00
publish first commit 2022-06-14 15:49:44 +08:00
src first commit 2022-06-14 15:49:44 +08:00
tests first commit 2022-06-14 15:49:44 +08:00
.gitattributes first commit 2022-06-14 15:49:44 +08:00
.gitignore first commit 2022-06-14 15:49:44 +08:00
.php-cs-fixer.php first commit 2022-06-14 15:49:44 +08:00
.phpstorm.meta.php first commit 2022-06-14 15:49:44 +08:00
composer.json first commit 2022-06-14 15:49:44 +08:00
LICENSE first commit 2022-06-14 15:49:44 +08:00
phpunit.xml first commit 2022-06-14 15:49:44 +08:00
README.md readme 2022-06-14 16:10:10 +08:00

mmds oss 上传组件使用

本组件依赖于hyperf 2.0

安装

1.设置仓库

{
  "repositories": [{
    "type": "composer",
    "url": "http://composer.zyimm.com"
  }]
}

2.安装依赖

composer require zyimm/hyperf-mmds-oss

3.发布配置

php bin/hyperf.php vendor:publish zyimm/hyperf-mmds-oss

4.使用


class TestController extends AbstractController
{
   
    public function upload()
    {
        return make(Oss::class)->upload();
    }
}