Home  >  Article  >  PHP Framework  >  How to use apidoc to generate technical documentation in yii2

How to use apidoc to generate technical documentation in yii2

(*-*)浩
(*-*)浩Original
2019-12-30 10:53:222983browse

How to use apidoc to generate technical documentation in yii2

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:

How to use apidoc to generate technical documentation in yii2

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Where is yii2 strong?Next article:Where is yii2 strong?