Forum Moderators: bakedjake
Apart from simply downloading a package, PEAR also provides a command-line interface that can be used to automatically install packages. The manual describes this procedure [pear.php.net] in detail.
Then, as long as the PEAR path is in your configuration, you simply use the PHP include() [php.net] function to include and use the package. If the PEAR path is not in your configuration you can change the
include_pathusing ini_set() [php.net] or set_include_path() [php.net].