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

How to use apidoc to generate technical documentation in yii2

(*-*)浩
Release: 2019-12-30 10:53:22
Original
3025 people have browsed it

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
Copy after login

Then install the following extension

composer require cebe/markdown ~1.0.0
composer require yiisoft/yii2-apidoc ~2.1.0
Copy after login

Generate api document

Open git under the project

vendor/bin/apidoc api source/dir .output
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template