gb-hyperf / api-doc
A swagger library for Hyperf.
Installs: 10
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/gb-hyperf/api-doc
Requires
- php: >=8.0
- hyperf/command: ~3.0.0
- zircote/swagger-php: ^4.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- hyperf/devtool: ~3.0.0
- hyperf/ide-helper: ~3.0.0
- hyperf/testing: ~3.0.0
- phpstan/phpstan: ^1.0
- swoole/ide-helper: ^5.0
README
hyper 的docs
安装
composer require gb-hyperf/api-doc
发布配置
php bin/hyperf.php vendor:publish gb-hyperf/api-doc
- 随框架启动自动扫描生成api文件 runtime/openapi.json
- 自动路由 /api-doc 获取api文档
- 浏览器打开: http://localhost:9501/api-doc