abo / phpdoc
Comments automatically generate documents
1.0.2
2019-07-18 03:38 UTC
Requires
- php: >=7.0.0
This package is not auto-updated.
Last update: 2024-11-15 12:53:19 UTC
README
介绍 ( Introduction )
需有 @method 或 @url 才会产生文档,其他按 Idea 提示 填写注解即可
It takes @method or @url to be useful, Others follow the Idea prompts to fill in the notes.
According to the prompt of Idea, fill in the note, but you must have @method or @url to be useful
使用说明 ( Usage )
1.安装扩展 ( Installing the extension )
composer require abo/phpdoc
2.填写方法注解 ( Fill in method notes )
/**
* 列表
* @url /fasterapi/head_img
* @method HeadImgController::index
* @param string img_title 头图
* @param string img_src 路径
* @param string jump_url_intro 跳转介绍
* @param string jump_url 跳转路径
*
* @return \Illuminate\Http\JsonResponse Json json数组
* @throws ApiException Json 接口异常
* @throws \Abo\Generalutil\V1\Exceptions\PageException Html 页面异常
*/
3. 运行脚本 ( Run the script )
$Doc = new \Abo\Phpdoc\Doc( './app/Http/Controllers', './' );
return $Doc->make( true );