Many PHP developers might be using Windows operating system and for developing PHP application one of the good package is WAMP which is very easy to install.

PHP has a very good collection of reusable components which is popularly known as PEAR.

Download WAMP for Windows for PHP, APACHE & MYSQL Development.

http://pear.php.net defines PEAR as

PEAR is a framework and distribution system for reusable PHP components.

Installing PEAR on WAMP is very easy.

Download PEAR for PHP.

Then Copy this file to your PHP folder.

eg. c:/wamp/www/bin/php/php5.3.0

Then run following command in the command prompt

 C:\wamp\bin\php\php5.3.0>php go-pear.phar
Are you installing a system-wide PEAR or a local copy?
 (system|local) [system] : system
Below is a suggested file layout for your new PEAR installation.  To
 change individual locations, type the number in front of the
 directory.  Type 'all' to change all of them or simply press Enter to
 accept these locations.
1. Installation base ($prefix)                   : C:\wamp\bin\php\php5.3.0
 2. Temporary directory for processing            : C:\wamp\bin\php\php5.3.0\tmp
3. Temporary directory for downloads             : C:\wamp\bin\php\php5.3.0\tmp
4. Binaries directory                            : C:\wamp\bin\php\php5.3.0
 5. PHP code directory ($php_dir)                 : C:\wamp\bin\php\php5.3.0\pea
 r
 6. Documentation directory                       : C:\wamp\bin\php\php5.3.0\doc
 s
 7. Data directory                                : C:\wamp\bin\php\php5.3.0\dat
 a
 8. User-modifiable configuration files directory : C:\wamp\bin\php\php5.3.0\cfg
9. Public Web Files directory                    : C:\wamp\bin\php\php5.3.0\www
10. Tests directory                               : C:\wamp\bin\php\php5.3.0\tes
 ts
 11. Name of configuration file                    : C:\WINDOWS\pear.ini
 12. Path to CLI php.exe                           : C:\wamp\bin\php\php5.3.0
1-12, 'all' or Enter to continue:
 Beginning install...
 Configuration written to C:\WINDOWS\pear.ini...
 Initialized registry...
 Preparing to install...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/Ar
 chive_Tar-1.3.7.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/Co
 nsole_Getopt-1.3.0.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/PE
 AR-1.9.4.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/St
 ructures_Graph-1.0.4.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/XM
 L_Util-1.2.1.tar...
 install ok: channel://pear.php.net/Archive_Tar-1.3.7
 install ok: channel://pear.php.net/Console_Getopt-1.3.0
 install ok: channel://pear.php.net/Structures_Graph-1.0.4
 install ok: channel://pear.php.net/XML_Util-1.2.1
 install ok: channel://pear.php.net/PEAR-1.9.4
 PEAR: Optional feature webinstaller available (PEAR's web-based installer)
 PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
 PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
******************************************************************************
 WARNING!  The include_path defined in the currently used php.ini does not
 contain the PEAR PHP directory you just specified:
 <C:\wamp\bin\php\php5.3.0\pear>
 If the specified directory is also not in the include_path used by
 your scripts, you will have problems getting any PEAR packages working.
Would you like to alter php.ini <C:\wamp\bin\php\php5.3.0\php.ini>? [Y/n] : y
php.ini <C:\wamp\bin\php\php5.3.0\php.ini> include_path updated.
Current include path           : .;C:\php5\pear
 Configured directory           : C:\wamp\bin\php\php5.3.0\pear
 Currently used php.ini (guess) : C:\wamp\bin\php\php5.3.0\php.ini
 Press Enter to continue:
** WARNING! Old version found at C:\wamp\bin\php\php5.3.0, please remove it or b
 e sure to use the new c:\wamp\bin\php\php5.3.0\pear.bat command
The 'pear' command is now at your service at c:\wamp\bin\php\php5.3.0\pear.bat
** The 'pear' command is not currently in your PATH, so you need to
 ** use 'c:\wamp\bin\php\php5.3.0\pear.bat' until you have added
 ** 'C:\wamp\bin\php\php5.3.0' to your PATH environment variable.
Run it without parameters to see the available actions, try 'pear list'
 to see what packages are installed, or 'pear help' for help.
For more information about PEAR, see:
http://pear.php.net/faq.php
 http://pear.php.net/manual/
Thanks for using go-pear!
* WINDOWS ENVIRONMENT VARIABLES *
 For convenience, a REG file is available under C:\wamp\bin\php\php5.3.0PEAR_ENV.
 reg .
 This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
C:\wamp\bin\php\php5.3.0>
At the end it will generate a .reg file, on which you have to double click to enter this information into registry.
 C:\wamp\bin\php\php5.3.0>php go-pear.phar
Are you installing a system-wide PEAR or a local copy?
 (system|local) [system] : system
Below is a suggested file layout for your new PEAR installation.  To
 change individual locations, type the number in front of the
 directory.  Type 'all' to change all of them or simply press Enter to
 accept these locations.
1. Installation base ($prefix)                   : C:\wamp\bin\php\php5.3.0
 2. Temporary directory for processing            : C:\wamp\bin\php\php5.3.0\tmp
3. Temporary directory for downloads             : C:\wamp\bin\php\php5.3.0\tmp
4. Binaries directory                            : C:\wamp\bin\php\php5.3.0
 5. PHP code directory ($php_dir)                 : C:\wamp\bin\php\php5.3.0\pea
 r
 6. Documentation directory                       : C:\wamp\bin\php\php5.3.0\doc
 s
 7. Data directory                                : C:\wamp\bin\php\php5.3.0\dat
 a
 8. User-modifiable configuration files directory : C:\wamp\bin\php\php5.3.0\cfg
9. Public Web Files directory                    : C:\wamp\bin\php\php5.3.0\www
10. Tests directory                               : C:\wamp\bin\php\php5.3.0\tes
 ts
 11. Name of configuration file                    : C:\WINDOWS\pear.ini
 12. Path to CLI php.exe                           : C:\wamp\bin\php\php5.3.0
1-12, 'all' or Enter to continue:
 Beginning install...
 Configuration written to C:\WINDOWS\pear.ini...
 Initialized registry...
 Preparing to install...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/Ar
 chive_Tar-1.3.7.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/Co
 nsole_Getopt-1.3.0.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/PE
 AR-1.9.4.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/St
 ructures_Graph-1.0.4.tar...
 installing phar://C:/wamp/bin/php/php5.3.0/go-pear.phar/PEAR/go-pear-tarballs/XM
 L_Util-1.2.1.tar...
 install ok: channel://pear.php.net/Archive_Tar-1.3.7
 install ok: channel://pear.php.net/Console_Getopt-1.3.0
 install ok: channel://pear.php.net/Structures_Graph-1.0.4
 install ok: channel://pear.php.net/XML_Util-1.2.1
 install ok: channel://pear.php.net/PEAR-1.9.4
 PEAR: Optional feature webinstaller available (PEAR's web-based installer)
 PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
 PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
******************************************************************************
 WARNING!  The include_path defined in the currently used php.ini does not
 contain the PEAR PHP directory you just specified:
 <C:\wamp\bin\php\php5.3.0\pear>
 If the specified directory is also not in the include_path used by
 your scripts, you will have problems getting any PEAR packages working.
Would you like to alter php.ini <C:\wamp\bin\php\php5.3.0\php.ini>? [Y/n] : y
php.ini <C:\wamp\bin\php\php5.3.0\php.ini> include_path updated.
Current include path           : .;C:\php5\pear
 Configured directory           : C:\wamp\bin\php\php5.3.0\pear
 Currently used php.ini (guess) : C:\wamp\bin\php\php5.3.0\php.ini
 Press Enter to continue:
** WARNING! Old version found at C:\wamp\bin\php\php5.3.0, please remove it or b
 e sure to use the new c:\wamp\bin\php\php5.3.0\pear.bat command
The 'pear' command is now at your service at c:\wamp\bin\php\php5.3.0\pear.bat
** The 'pear' command is not currently in your PATH, so you need to
 ** use 'c:\wamp\bin\php\php5.3.0\pear.bat' until you have added
 ** 'C:\wamp\bin\php\php5.3.0' to your PATH environment variable.
Run it without parameters to see the available actions, try 'pear list'
 to see what packages are installed, or 'pear help' for help.
For more information about PEAR, see:
http://pear.php.net/faq.php
 http://pear.php.net/manual/
Thanks for using go-pear!
* WINDOWS ENVIRONMENT VARIABLES *
 For convenience, a REG file is available under C:\wamp\bin\php\php5.3.0 PEAR_ENV.
 reg .
 This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.

Now double click on this file, it will add required information to the registry.

And now you have to restart your apache server so that your pear library will be available for use.