您的位置 首页 php

php文档生成

php文档生成

phpDocumentor是用php语言写的一个非常强大的文档自动生成工具,利用它可以帮助我们编写规范的注释,生成易于理解,结构清晰的文档,对我们的代码升级,维护,移交等都有非常大的帮助

安装 pear

依赖pear安装:

首先是查看自己的php.exe同目录下是否存在pear这个文件,没有下载。

下载另存为go-pear.phar文件

这个文件放到php.exe所在的PHP安装目录下,我这里安装目录是D:wamp64 bin phpphp5.6.25

用管理员权限运行cmd,注意选择local、按回车默认system然后继续

php文档生成

安装Phpdocumentor

php文档生成

pear list用来查看pear目录中是否存在phpdocumentor本地包

继续在dos的php目录,输入pear install -a phpdocumentor。(没有会自动下载)

php文档生成

此时会有以下文件:

php文档生成

输入phpdoc -h会有以下提示

php文档生成

用到最多的几个参数:

-f 要进行分析的文件名,多个文件用逗号隔开

-d 要分析的目录,多个目录用逗号分割

-t 生成的文档的存放路径

-o 输出的文档格式,结构为输出格式:转换器名:模板目录。

测试:

1.php的内容

php文档生成

phpdoc -o HTML:frames:earthli -f D:wamp64wwwone1.php -t docs

上述命令执行完成后:会在docs文件下的default中生成一个文件:haha.html

用浏览器打开:

php文档生成

文章来源:智云一二三科技

文章标题:php文档生成

文章地址:https://www.zhihuclub.com/76481.shtml

关于作者: 智云科技

热门文章

评论已关闭

36条评论

  1. Youssef MA, van Wely M, Mochtar M, Fouda UM, Eldaly A, El Abidin EZ, Elhalwagy A, Mageed Abdallah AA, Zaki SS, Abdel Ghafar MS, Mohesen MN, van der Veen F.

  2. Note that Epo and GATA 1 can induce bcl x L mRNA independently, although both are required for maximal expression

  3. Cutaneous reaction Pruritus and macular erythema in a man after repeatedly ingesting a natural product containing ginkgo and vinpocetine 38

  4. The projection of the protein perpendicular to the membrane is roughly rectangular with a maximum depth of 8 nm, a pore size of 2

  5. If cancer is detected early, chemotherapy can sometimes shrink a tumor dramatically, making surgery easier to perform and more likely to be successful 23, 24 In the corneal micropocket assay of neovascularization, addition of Ang 2 to VEGF increases neovascularization, compared with VEGF alone

  6. This might explain the absence of differences on insulin secretion between WT and GRK2 mice when glucose is used as the only secretagogue, an effect that is also observed in isolated islets

  7. Furthermore, the results of the study on Wistar rats with developed signs of metabolic syndrome suggest that an olive leaf extract containing polyphenols such as Ole and HTyr may reverse the chronic inflammation and oxidative stress and improve or normalize cardiovascular, hepatic, and metabolic signs with the exception of elevated BP 229

  8. Kickstarter also released a statement last month, reiterating that celebrities and non celebrities alike are welcome to use the platform for creative projects

  9. Originally treated for pain with morphine, Newton John was able to wean herself off the morphine by using marijuana, primarily cannabis oil Moreover, STAT2, which is specifically activated in type I IFN signaling, in contrast to STAT1, which is also activated during type II IFN signaling, 5 has been recently identified in a genome wide screen for its ability to positively regulate two forms of selective autophagy, virophagy and mitophagy

  10. LIVE, zeigt sich über die Absage enttäuscht Dass durch das Einreichen eines Sperrtermins noch keine verbindliche Zusage für verfügbare Termine resultiert, war allen Beteiligten in der Planung des Events bewusst

  11. Patients will either be treated with anastrozole 1mg daily for 3 years or tamoxifen 20mg daily for 3 years, and will additionally receive either zoledronate 8mg q4 weeks for 3 years or no zoledronate arm A Nolvadex alone; arm B Nolvadex plus zoledronate; arm C Arimidex alone; arm D Arimidex plus zoledronate

  12. Patients using the 5 milligram dose of tamoxifen did not report hot flashes, vaginal dryness or pain during intercourse at a rate significantly higher than patients taking the placebo

  13. He said the ulcers would eventually clear up sent me home He said his source is outta the country

  14. Overall, little is known specifically about heart transplant outcomes in patients with DS

  15. In general, cancer cells were reversely transfected with siRNA and cell proliferation or cell numbers were determined 96 h after siRNA transfection Chapter 5 Testosterone 101 Understanding the Biological Role of Testosterone provides you a quick, concise and easy to understand breakdown of the biological role that testosterone plays in your body

  16. Antagonist binding to ERRgamma results in a rotation of the side chain of Phe 435 that partially fills the cavity of the apoLBD Гў I have been living this dream every day for the last 24 years

  17. Ein oft verfolgtes Ziel der Fitnessgemeinde ist ein definierter Bauch, das sogenannte Sixpack

  18. Upon withdrawal of doxycycline from the feed Dox Off of these mice, lethal diphtheria toxin A was expressed in microglia 28

  19. Have never been a sunworshipper in the sense of broiling self on the beach grew up in SW FL but was out with the horses most of most days

  20. After completion of reaction, reaction mixture was transferred into 10 solution of sodium phosphate 90 mL and extracted with ethyl acetate

  21. Testing is only indicated if a patient presents with an atypical rash for erythema migrans

  22. Night Work and the Risk of Cancer Among Men 9 were the most frequent stent types causing ST, while third generation drug eluting stents 6

网站地图