Skip to content

chatfeed/yii2-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-doc

====================== auto generate api document by using comment for yii2.

Installation

composer require chatfeed/yii2-doc "*"

Configure

    "module"=>[
        "doc" => [
            "class" => "cfd\doc\Module",
            "modelDescriptions"=>require __DIR__."/model_description.php",
            "modelsMap"=>[
                "\common\base_models\kds\\",
            ]
        ]
    ]

Define Customer Model

return [
    "demo"=>[
        ["object","demo","模型"],
        ["integer","id","ID"],
        ["string","name","名称"],
        ["string","desc","描述"],
        ["integer","created_at","创建时间"],
        ["integer","updated_at","更新时间"],
    ]
];

Screenshot

screenshots Thanks yii2-fast-api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages