Download the PHP package westhack/think-swagger without Composer
On this page you can find all versions of the php package westhack/think-swagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download westhack/think-swagger
More information about westhack/think-swagger
Files in westhack/think-swagger
Download westhack/think-swagger
More information about westhack/think-swagger
Files in westhack/think-swagger
Vendor westhack
Package think-swagger
Short Description swagger for thinkphp5
License MIT
Homepage https://github.com/westhack/think-swagger
Package think-swagger
Short Description swagger for thinkphp5
License MIT
Homepage https://github.com/westhack/think-swagger
Please rate this library. Is it a good library?
Informations about the package think-swagger
think-swagger
The ThinkPHP5 swagger Swagger composer模块
安装
一、执行命令安装
或者
二、require安装
或者
三、autoload psr-4标准安装
- 进入 vendor/westhack 目录 (没有 westhack 目录 mkdir westhack)
- git clone
- 修改 git clone 下来的项目名称为 think-swagger
-
添加下面配置
- php composer.phar update
使用
添加配置文件
- 默认配置在 config 下面的 swagger.php
- 需要自己的配置将 config 下面的 swagger.php 复制到 extra 目录下面(或者通过下面 console 添加配置文件)
使用方法
初始化项目资源
在项目目录下面找到 command.php 添加控制台添加下面配置
执行 console 命令初始化 assets 资源
执行 console 命令初始化 config 配置
访问
在php文件中添加注释
All versions of think-swagger with dependencies
PHP Build Version
Package Version
The package westhack/think-swagger contains the following files
Loading the files please wait ....