PHP Extension and Application Repository (PEAR)62 is a repository and package manager for PHP. The PEAR repository includes a number of open source packages that perform a variety of useful functions. Since PHP 4.3.0 PEAR is included with the standard PHP distribution but may not be installed by default. To install PEAR on your system go to the PHP home directory and type the command
The PEAR web site62 has a list of the available PEAR
packages. The pear program makes it easy to download and install new PEAR packages. The PEAR
framework can also be a useful way for you to distribute your code to other users in a more structured
and consumable way than simply giving them PHP scripts.
PEAR packages are included as regular PHP files and these are found using include_path.
PEAR requires PHP 4.2.0 or later.
To get a list of installed PEAR packages use the command
To get a list of PEAR commands use
To get show the current PEAR configuration settings type
To install a PEAR package type
where PACKAGE_NAME is the name of the PEAR package on one of the configured PEAR channels or URL is the URL to a gzipped tar archive file for the package. This can also be a local archive file that you have downloaded. PEAR also has commands for updating , uninstalling packages, and discovering dependencies.
There are no user comments.
Please send ideas and opinions by email at alexamies@gmail.com.