Download the PHP package tiacx/laravel-apifox without Composer
On this page you can find all versions of the php package tiacx/laravel-apifox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-apifox
Laravel-ApiFox
说明
功能:通过TestCase快速生成ApiFox文档
安装
配置
发布配置文件
配置请求中间件
修改
app/Http/Kernel.php文件,增加\Tiacx\ApiFox\Middleware\ApiFoxMiddleware::class中间件配置
增加 .env 配置项
注:项目ID 及 访问令牌的获取方法请参考官方开放平台说明(https://apifox-openapi.apifox.cn/)
使用
在 TestCase 方法处添加 @apifox.name 及 @apifox.tags 标识,然后运行 TestCase 即可。
@apifox.name接口名称(必填)@apifox.description接口描述(非必填)@apifox.dirs接口目录(非必填。支持多级,使用/隔开)@apifox.tags接口标签(非必填。支持多级,使用/隔开)@apifox.withHeaders带上头信息(非必填。公共头应该在ApiFox里设置)
注:生成文档之后,可把 @apifox 相关注释删除掉。
注意事项
ApiFox开放平台只提供的数据导入接口,只有新增接口功能,没有更新或删除接口的功能。如果需要重新推送接口,要先手动删除ApiFox里的接口,再运行TestCase,再重新推送。
All versions of laravel-apifox with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
laravel/framework Version >=5.5.0
guzzlehttp/guzzle Version >=6.5.8
ext-json Version *
laravel/framework Version >=5.5.0
guzzlehttp/guzzle Version >=6.5.8
ext-json Version *
The package tiacx/laravel-apifox contains the following files
Loading the files please wait ...