Install apidoc extension
If the following extension is not installed, install it first (Recommended learning: yii framework)
composer require phpdocumentor/reflection-docblock ~2.0.4
Then install the following extension
composer require cebe/markdown ~1.0.0 composer require yiisoft/yii2-apidoc ~2.1.0
Generate api document
Open git under the project
vendor/bin/apidoc api source/dir .output
Effect:
The above is the detailed content of How to use apidoc to generate technical documentation in yii2. For more information, please follow other related articles on the PHP Chinese website!