Overview
Regarding PEAR and PECL, I knew it when I first learned PHP, but it seems that few people use it. Plus, I used to do development under Windows, so I don’t know much about it. Now that I have switched to Mac, Get these two things straight.
What is PEAR
The full name of PEAR is PHP Extension and Application Repository, which is an extension library of PHP and is written in PHP language. So we can directly download and include the extension library in our code.
What is PECL
PECL’s full name is PHP Extension Community Library, which is also an extension library of PHP. PECL extensions are written in C language and can be loaded into PHP to add additional functions to PHP, such as PHP's Mongo extension.
PEAR VS PECL
PEAR is written in PHP and PECL is written in C language
PEAR is also a PHP coding standard
Summary
When installing PHP extension libraries in the future, such as Mongo extensions, install them directly using PECL, and there should be no more version mismatches~~