To Generate Documentation in NetBeans you require few things,
1) API documentation generator for PHP ( ApiGen )
2) PHP Interpreter ( WAMP, XAMP )
Step 1
Extract ApiGen-x.x.x-standalone.zip file at secure location. (or inside Netbeans installation directory).
Step 2
Start NetBeans (7.4 or later) and click on Tools=>Options. Then click on "ApiGen" tab.
Step 3
Inside "ApiGen Script" input box locate your ApiGen directory extracted previously and select "apigen.php" file.
Step 4
Now go to "General" tab's Command Line Section.
Inside PHP Interpreter input box browse for WAMP or XAMP directory (hope you have installed it!) and Select "php.exe" inside "bin\php\phpx.x.x".
Click "Apply".
Step 5
Done!
Now right-click any PHP Project you are working on and click "Generate Documentation" (It may ask for "Target Directory").
Note:
If you decided to use "apigen.bat" instead of "apigen.php" you may fall in error
Check How To Set Environment Variable
1) API documentation generator for PHP ( ApiGen )
2) PHP Interpreter ( WAMP, XAMP )
Step 1
Extract ApiGen-x.x.x-standalone.zip file at secure location. (or inside Netbeans installation directory).
Step 2
Start NetBeans (7.4 or later) and click on Tools=>Options. Then click on "ApiGen" tab.
Step 3
Inside "ApiGen Script" input box locate your ApiGen directory extracted previously and select "apigen.php" file.
Step 4
Now go to "General" tab's Command Line Section.
Inside PHP Interpreter input box browse for WAMP or XAMP directory (hope you have installed it!) and Select "php.exe" inside "bin\php\phpx.x.x
Click "Apply".
Step 5
Done!
Now right-click any PHP Project you are working on and click "Generate Documentation" (It may ask for "Target Directory").
Note:
If you decided to use "apigen.bat" instead of "apigen.php" you may fall in error
"php.exe"' is not recognized as an internal or external command,TA:
operable program or batch file.
You need to set Environment Variable for 'php.exe'Check How To Set Environment Variable
No comments :
Post a Comment