开发环境是win10系统 1、安装swagger-php扩展 composer require zircote/swagger-php 2、安装swagger-php前端组件 GitHub - swagger-api/swagger-ui: Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API. 下载完成把代码放到public目录,如图下