API Documentation for PHP 5.3

by cobby

If you are like me, then you’ve probably just gone to run your latest library code through phpDocumentor, only to get a bunch of problems all to do with namespaces. But fear not! After a round of tedious searching I finally found a solution, PHPDoctor. Well, it’s actually a fork version I found on GitHub. It operates pretty much identically to phpDocumentor but all your configurations are stored in an INI file and it has no web interface.

The only bad thing about PHPDoctor is it’s output. I found the default output to be a little boring, so I’ve gone through and copied a few elements from one of the phpDocumentor’s frames templates. PHPDoctor doesn’t have modular templates like phpDocumentor, and having to modify PHPDoctors code was a chore – it’s source code is disgusting… The other thing it is missing is the JavaScript TreeMenu.

Enough blabbering, here is my custom version of PHPDoctor with namespace support. Included is a basic Phing task as well, because I am such a nice fellow.
Cobby’s PHPDoctor

If anyone is interested, I would be keen on making a new API doc generator in PHP 5.3 with some actual coding standards.

Tags: , ,

This entry was posted by cobby on at and is filed under PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.