Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPDoc documentation generator in or out of Eclipse? [closed]

I am developing with Eclipse + PDT. I've been adding phpdoc comments into my code, but actually never generated a resulting documentation in Eclipse. How should I do it - is there some functionality in Eclipse, or doc generation should be done externally?

like image 791
AlexA Avatar asked Jul 26 '09 13:07

AlexA


2 Answers

To generate the documentation, you should use phpDocumentor, which can be installed as a PEAR package.

Then, you have to call it from command-line ; I've never seen it called from Eclipse PDT, actually.

A great solution is to have a continuous-integration platform (using phpUnderControl, for instance), and integrate to creation of the phpdoc in your build configuration file ; this way, the phpdoc is generated everytime someone commits (or once a day, or whenever you want ^^ ).

In Eclipse PDT, you can call "external tools" (see "Run > External Tools" in the menu) ; this would allow you to launch the phpdoc command (like you do from CLI) ; but it definitly is not as user-friendly as what Zend Studio offers -- not the same price either, though ^^

like image 181
Pascal MARTIN Avatar answered Oct 14 '22 07:10

Pascal MARTIN


Another great tool to generate documentation is ApiGen. It doesn't need installation with PEAR (but includes it) and it can be used like a standalone package.

like image 27
Davide Pastore Avatar answered Oct 14 '22 06:10

Davide Pastore