Recent projects require Phpdoc to generate documents, install Phpdocumentor First, install with pear: Switch User: su root install phpdocumentor:pear install Phpdocumentor generate document: Phpdoc–h Will get a detailed list of phpdocumentor parameters. Let's take a look at some of the most important ones. -D This directory represents the original PHP file directory that needs to generate the document (note is the directory)-T this directory represents the generated document directory-O This parameter represents the generated document format, such as HTML format, parameter is phpdoc-d/mnt/ Www/ci_system_3/application/controllers/api1-t/mnt/www/sui-o HTML:frames:phpedit Browse to generate document results I am disappointed that the program is garbled in Chinese, After Google search, Phpdocumentor's default encoding is: Iso-8859-1, my projects are UTF8 encoded, so you need to change the code to Utf-8. Go to the Phpdocumentor template directory to change the template file to Utf-8 code: cd/usr/share/pear-data/phpdocumentor/phpdocumentor/ Converters execute string lookup and Replace command: Find./-name ' *.TPL ' | Xargs sed-i ' s/iso-8859-1/utf-8/g ' after execution, then generate the project document, browse the project in Chinese garbled solution. You can also modify the past with this command if the item has been changed for another encoding.
Very simple, finished, the interface is too ugly, you can customize the interface. Read the manual.
Phpdocumentor Generating Documents