Wednesday, February 9, 2011

How to integrate phpdocumentor in eclipsePDT

You can download the phpdocumentor from the below url

http://sourceforge.net/projects/phpdocu/files/PhpDoc/phpDocumentor-1.4.3/PhpDocumentor-1.4.3.zip/download

keep the phpdocumentor project in the WWW folder

If we want to integrate the phpdocumentor within eclipse.

1. Open the 'External Tools Configurations ' Dialog through 'Run -> External Tools -> External Tools Configurations' then you find the dialogbox as shown below.

2. Rightclick on the program and then click new.(click on the + mark as shown in fig above "type filter text")



3. Enter the following data:

Name : phpdocumentor

Location : C:\wamp\bin\php\php5.2.9-2\php-win.exe (give the php path executables into loaction)

Working Directory : C:\wamp\www\PhpDocumentor(as we already downloaded the PhpDocumentor into www )
4. In the arguments field type

"  phpdoc -d "C:\wamp\www\extoledev" -t "C:\wamp\www\testphpproj\doc" -o HTML:Smarty:default "

my php project is located at C:\wamp\www\extoledev and its document should be created to testphpproj(C:\wamp\www\testphpproj\doc)

-d is directory(main php application or project directory to which you have to create documentation for it )

-t is target(target directory to which you have save the documentation.)

-o is output(output file as pdf or html etc.)

keep -O HTML:Smarty:default for html output.
 
Leave me a comment if you need any assistance..

1 comment: