Intellisense for PEAR packages

VS.Php comes with the standard PEAR distribution and has the PEAR directory already in the default include directories. This means you can include a PEAR file and get the intellisense for it. The following diagram shows how simply including the DB.php file in your script will give you access to the PEAR::DB package.


Note that this only works when you are using projects. The reason is that VS.Php needs to know which Php platform to use.

Your own PEAR distribution

If you would like to use your own PEAR distribution you can simply add its location to the include directory setting on your project properties. Your PEAR distribution would have precedence over the ones included with VS.Php

Adding PEAR packages

The PEAR packages are inside the VS.Php's php distributions. Note there is one for Php5 and one for Php4. You can use the standard means for adding packages using the php-cli and the pear scripts. More information about this can be found at the PEAR website.