Download the PHP package bobitluo/php-swagger without Composer
On this page you can find all versions of the php package bobitluo/php-swagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bobitluo/php-swagger
More information about bobitluo/php-swagger
Files in bobitluo/php-swagger
Download bobitluo/php-swagger
More information about bobitluo/php-swagger
Files in bobitluo/php-swagger
Vendor bobitluo
Package php-swagger
Short Description A PHP document generator that supports swagger
License MIT
Package php-swagger
Short Description A PHP document generator that supports swagger
License MIT
Please rate this library. Is it a good library?
Informations about the package php-swagger
php-swagger
Introduction
一个基于 phpDocumentor 生成 Swagger2.0 json 的PHP文档生成器
Installation
Usage
PHP注释样例
* {
* "ret_code": 200,
* "ret_msg": "success",
* "result": {
* "expires": 1565796956,
* "type": "Bearer",
* "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
* }
* }
*
PHP注释描述
name | description | example | comment |
---|---|---|---|
title | 接口标题 | 登录 | 建议简短 |
descritpion | 接口描述 | 支持密码和验证码两种方式登录 | 可多行 |
@package | 接口所在的分类 | @package 用户 | SwaggerUI中会根据分类分组显示。 可在Controller类注释中添加此类所有Action的默认分类 |
@http-method | 接口请求方法 | @http-method post | 目前仅较好的支持get, post |
@param | 接口参数 | @param string $cellphone* 手机号 13800138000 | 数据类型 参数名($开头,末尾加*表示必填) 参数描述 默认值 |
@return | 接口返回 | @return json 200 成功 字段解释: 名称 | 类型 | 示例 | 描述 ------ | ------ | ------ | ----- expires | int | 1565796956 | 凭证过期时间戳 ... |
@return 标签后紧跟接口返回类型(如:json, xml),返回码,返回码描述。后续多行支持Markdown格式的内容 |
All versions of php-swagger with dependencies
PHP Build Version
Package Version
The package bobitluo/php-swagger contains the following files
Loading the files please wait ....