This article mainly introduces what is PEAR? What is PECL? Two confusing concepts in PHP are explained. This article explains their differences in a concise language. For more information, see
Overview
PEAR and PECL are two things you know when you are new to PHP, but few people seem to be familiar with it. In addition, they used to do development in Windows, so they didn't know much about it, now we have switched to Mac, so we can figure out these two items completely.
What is PEAR?
PEAR is PHP Extension and Application Repository. it is an Extension library of PHP and is written in PHP. Therefore, we can download it directly and include the (include) extension library in our code.
What is PECL?
The full name of PECL is PHP Extension Community Library, which is also the Extension Library of PHP. PECL extensions are all written in C language and can be loaded into PHP to add additional functions to PHP, such as PHP Mongo extensions.
PEAR VS PECL
PEAR is written in PHP, and PECL is written in C.
PEAR is also a PHP encoding standard
Summary
When you install the PHP Extension library in the future, for example, the Mongo extension will be directly installed using PECL, so no version mismatch will occur again ~~