This is an old revision of the document!

The PEAR Project

PEAR is a framework and distribution system for reusable PHP components. You can find help using PEAR packages in the online manual and the FAQ.

If you have been told by other PEAR developers to sign up for a PEAR website account, you can use

PEAR Packages

PEAR offers a wide range of packages for both PHP 4 and 5.

These packages provide all sorts of common functionality, like Validation or interacting with a Database.

Some of the most popular packages include:

PEAR on the Command Line

The most user visible piece of software which makes up the PEAR framework is the command line tool.

For example, you can use the command line tool to install packages:

pear install -a MDB2

or upgrade existing packages

pear upgrade-all

This makes the installing of packages simpler for users & developers who administer their own servers.

PEAR Channels

PEAR is built around the concept of a 'channel'. Other websites can provide their own PEAR channels.

For instance, doing:

pear channel-discover


pear install phpunit/phpunit

Will allow you to install PHPUnit, which is entirely independent of PEAR itself.

Recent Posts

pear.1204945663.txt.gz · Last modified: 2017/09/22 13:28 (external edit)