【文件属性】:
文件名称:hyperf-apihelper:hyperf api swagger helper -[api接口自动验证和swagger接口文档生成] 组件
文件大小:491KB
文件格式:ZIP
更新时间:2021-05-08 06:31:11
PHP
hyperf-apihelper
hyperf api and swagger helper.
它是一个框架的 [api接口自动验证和swagger接口文档生成] 组件.
功能包括:
通过注解定义接口路由、请求方法和参数,并由中间件自动校验接口参数.
生成json文件,供swagger接口文档测试使用,可打开或关闭.
swagger支持接口多版本分组管理.
支持restful path路由参数校验.
支持自定义响应体结构.
支持自定义多层级swagger model.
支持自定义前置动作.
支持自定义拦截动作.
支持自定义后置动作.
0.安装
nginx(或apache)指定站点目录为 BASE_PATH/public, swagger-ui将自动发布到该目录下
安装组件
# composer安装本组件
composer require kakuilan/hyperf-apihelper
【文件预览】:
hyperf-apihelper-master
----.gitattributes(20B)
----publish()
--------swagger()
--------languages()
--------apihelper.php(3KB)
----todo.md(975B)
----src()
--------Annotation()
--------Exception()
--------Middleware()
--------Controller()
--------ConfigProvider.php(4KB)
--------DispatcherFactory.php(18KB)
--------Swagger()
--------Validation()
--------ApiAnnotation.php(8KB)
----.php_cs(2KB)
----.travis.yml(825B)
----LICENSE(11KB)
----phpunit.xml(493B)
----README.md(22KB)
----.phpstorm.meta.php(116B)
----.gitignore(61B)
----composer.json(1KB)