安裝phpDocument及使用


phpDocument官網:https://www.phpdoc.org/

提供了簡便的安裝方法:

 

 

安裝很簡單。對於中間可能出現的問題,進行QA

Q:phpDocument需要什么環境么?

A:需要php環境。

 

Q:配置php訪問路徑。

A:配置 phpdoc.bat 使其指向您所安裝php的位置;

 

Q:

D:\php5>pear install phpdoc/phpDocumentor-alpha
No releases available for package "pear.phpdoc.org/phpDocumentor"
install failed
 
A:
登錄http://pear.phpdoc.org/,查看可使用的phpDocumentor下載地址,再次運行
D:\php5>pear install http://pear.phpdoc.org/get/phpDocumentor-2.0.0b6.tgz
downloading phpDocumentor-2.0.0b6.tgz ...
Starting to download phpDocumentor-2.0.0b6.tgz (3,002,729 bytes)
.........................................................................
.........................................................................
.........................................................................
.........................................................................
.........................................................................
.............done: 3,002,729 bytes
install ok: channel://pear.phpdoc.org/phpDocumentor-2.0.0b6
 
Q:對於pear的安裝
 
A:查看   安裝pear及使用
 
Q:簡單使用
 
A:

phpdoc -d "D:\phpStudy\WWW\app" -t "D:\phpStudy\WWW\doc"

-d表示要生成文檔的應用,-t表示文檔生成在哪個目錄。

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM