21st January 2009 - 3 minutes read time
PHPDocumentor is a fast and convent way of creating API documentation for your PHP programs and classes. If you are familiar with the world of Java, it works in much the same way as the JavaDoc program, indeed, it is based on this program.
PHPDocumentor can be run in a number of different ways, but I have found that the easiest way is to, again, use PEAR to install everything you need. To install PHPDocumentor using PEAR use the following command.
phpdoc install phpdocumentor
To run PHPDocumentor and see a list of commands just type in the following:
phpdoc -h
To run PHPDocumentor you need to provide a couple of options, these are: