Search code examples
phpnetbeansphpdoc

PHPDocumentor, Netbeans & GraphViz


I configured my phpdpc.bat as the following in netbeans:

C:\xampp\php\phpdoc.bat --sourcecode -o HTML:Smarty:default

I've found the information that I can build some how graphviz grafics with phpdocumentor but i did not get it running until now.

Which parameters / configuration do I need to build graphviz graphs with phpdocumentor?


Solution

  • Judging from your command syntax, you are using a 1.x version of phpDocumentor. GraphViz usage is something new in the 2.x versions. Doublecheck which version you are using, and upgrade to 2.x if you are specifically wanting graphs. Also note that the old output templates of 1.x (e.g. HTML:Smarty:default) are not available in 2.x. Examples of the 2.x templates can be seen at [1].

    Also, if you do want to upgrade to 2.x, note that it requires PHP 5.3+, whereas 1.x requires 5.2-.

    [1] -- http://phpdoc.org/templates