Mdoc is an auto-documentation tool for PHP code to create manuals like the PHP manual at php.net, which is a style common to the PHP community and which is very efficient to share your code as APIs. Custom output format can be built thanks to a powerful template feature and can be in any structured language such like XML, PDF, or CHM.