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','更新时间'], ] ];