Error Handling with PEAR
Ludo has a nice post on how to leverage PEAR’s native error handling methods in your own libraries. These are exactly the short of tutorials that are needed for PEAR to live up to its potential. Wish someone had laid it out for me sooner.
One option if your nervous about whether PEAR will be installed locally is to distribute the base class in a local extlib directory alongside your library. MoveableType for example gives you the option of downloading it with, or without a complete extlib. (this is an off the cuff suggestions, I haven’t confirmed this is kosher with the PEAR license for example)