What is the difference between PHP Pear and regular PHP libraries?

PHP Pear is a framework and distribution system for reusable PHP components, while regular PHP libraries are standalone libraries that can be used in PHP projects. PHP Pear provides a way to easily manage and install PHP libraries, while regular PHP libraries may need to be manually downloaded and included in the project. PHP Pear also follows a specific naming convention and directory structure, making it easier to organize and manage dependencies.

// Example of using a regular PHP library
require_once 'path/to/library.php';

// Example of using a PHP Pear package
require_once 'System.php';
require_once 'Date.php';