Pear安装和PHPDOC使用

首先你需要下载go-pear.phar 地址:http://pear.php.net/go-pear.phar。

执行命令 php go-pear.phar 安装。

执行pear,输出:

Pear安装和PHPDOC使用_第1张图片
image.png

安装成功。

现在安装PHPDoc,执行 pear install phpDocumentor 。

输出:


Pear安装和PHPDOC使用_第2张图片
image.png

安装成功。

如何使用?

phpdoc -h 查看选项
phpdoc -d 要生成文章的php文件目录
-t 文档存储的目标路径

你可能感兴趣的:(Pear安装和PHPDOC使用)