We are already familiar with installing PHP libraries via PEAR (discussed in the previous chapter), and we may have had the PEAR configuration auto_discover
set to ON. In this section, we will install and configure ApiGen with NetBeans, using the following steps:
1. From the terminal or command prompt, run the following commands to install ApiGen:
pear config-set auto_discover 1 pear install pear.apigen.org/apigen
The
install
command will automatically download and install ApiGen along with all of its dependencies. Skip the first command if you have already enabled PEARauto_discover.
2. Now, we need to add the ApiGen executable file to the IDE. Open the IDE Options window from Tools | Options, and choose the PHP Tab | ApiGen tab, then click on the Search... button to search for ApiGen scripts. The ApiGen scripts should be listed automatically, as shown in the following screenshot:
3. From the previous screenshot, select...