PEAR is stands for PHP Extension and Application Repository and PEAR is available on the Web at Its purpose is to provide PHP developers with a library of reusable PHP classes(also known as packages), that can easily be integrated into any PHP application and that follow a standard coding style and file structure. PEAR packages are distributed as compressed TAR archives and can be installed to any PHP development system using the PEAR installer.
PEAR packages cover a diverse array of categories. Some of these are:

Installing PEAR Packages
PHP comes with an automated installer for PEAR packages. This installer has the capability to automatically connect to PEAR’s central server, download the requested package and install it to your PHP development environment.
Windows users must first configure the PEAR installer by manually executing the go-pear batch file located in their PHP installation directory. This file will configure the PEAR installer, generate the necessary registry entries and place installer files in the correct locations on the file system.
To install a PEAR package using the installer simply issues the following command at the shell prompt:

Shell>pear install package-name

The PEAR installer will now connect to the PEAR package sever download the package and install it to the appropriate location on your system. Fig 12-1 has an example of installing the net_POP3 package.  

If you‘re not able to get the PEAR installer to work correctly try adding the –v option to the installation command line, to display additional debugging information.

Anuj Kumar

This is Anuj Kumar. I’m a professional web developer with 4+ year experience. I write blogs in my free time. I love to learn new technologies and share with others.
I founded PHPGurukul in September 2015. The main aim of this website to provide PHP, Jquery, MySQL, PHP Oops and other web development tutorials.

Recommended Tutorials for you

Add comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.