PEAR only accepts contributed code which is of high quality and which is compliant to the PEAR Coding Standards. For you this means that you are using code that has a more or less consistent API, is based on the same standard components and provides the same error reporting mechanism everywhere.
Note that this does not apply for code that is contributed to PECL: In PECL all code has to follow the PHP coding standards.