Working with PHP_Depend
This topic explains how to configure and work with the PHP_Depend plugin.
Prerequisites
How do
I install the PHP Depend plugin?
For more details on PHP_Depend, click here.
Configuring PHP_Depend
This procedure describes how to configure PHP_Depend options and metrics.
|
|
|
To configure PHP_Depend:
- From the menu-bar, select Window | Preferences | PHP Tools | PHP Depend.
-
Configure the PHP_Depend preferences as follows:
- PHP Executable- Select a PHP Executable for running PHP_Depend.
-
PEAR Library- You may choose to use your own PEAR library or the internal library.
Note:
The internal library is always within the include path, missing packages are used from there.
- Click OK.
- From the menu-bar, select Window | Preferences | PHP Tools | PHP Depend | Metrics.
- Configure the metrics you wish PHP_Depend to measure, by selecting and unselecting the check-boxes in the list. Click New to a metric of your own.
- Click OK.
|
|
Analyzing Code with PHP_Depend
This procedure describes how to measure metrics for a specific file or folder using PHP_Depend.
|
|
|
To measure metrics using PHP_Depend:
- From the menu-bar, select Window | Show View | PHP Tools | PHP Depend.
The PHP Depend view is displayed. This view is used to display the measured metrics.
- In the PHP Explorer, right-click the file or folder you wish to measure metrics for, and select PHP Tools | PHP Depend.
-OR- In the tool-bar, click the Run PHP Depend icon . PHP Depend will parse the source code and measure the configured metrics. The results are displayed in the PHP Depend view.
|
|