yii2-doc YII2 接口文档工具 项目简介
YII2接口文档工具:使用注释自动生成基于YII2的接口文档,自动获取模型中注释。安装方式composer require chatfeed/yii2-doc "*"配置 'module'=>[
'doc' => [
'class' => 'cfd\doc\Module',
'modelDescriptions'=>require __DIR__.'/model_description.php',
'modelsMap'=>[
'\common\base_models\kds\\',
]
]
]用户自定义模型return [
'demo'=>[
['object','demo','模型'],
['integer','id','ID'],
['string','name','名称'],
['string','desc','描述'],
['integer','created_at','创建时间'],
['integer','updated_at','更新时间'],
]
];
'doc' => [
'class' => 'cfd\doc\Module',
'modelDescriptions'=>require __DIR__.'/model_description.php',
'modelsMap'=>[
'\common\base_models\kds\\',
]
]
]用户自定义模型return [
'demo'=>[
['object','demo','模型'],
['integer','id','ID'],
['string','name','名称'],
['string','desc','描述'],
['integer','created_at','创建时间'],
['integer','updated_at','更新时间'],
]
];