This article mainly introduces what is pear? What is pecl? Two confusing concepts in PHP explain the differences in concise language, the need for friends can refer to the
Overview
About PEAR,PECL These two things, beginner PHP when you know, but it seems to use people rarely add to the previous is also in Windows to do development, so do not know much, now turn to the Mac, the two things thoroughly to find out.
What is Pear
Pear's full name is PHP Extension and application Repository, PHP's extension library, written in PHP language. So we can download it directly and include the (include) extension library in our code.
What is PECL
Pecl's full name is the PHP Extension Community Library, which is also an extension of PHP. PECL extensions are written in C, can be loaded into PHP, add extra functionality to PHP, such as PHP's MONGO extension.
PEAR VS PECL
Pear is written in PHP, pecl by C language
Pear is also a standard for PHP coding
Summarize
After installing the PHP extension library, such as MONGO expansion, direct use of pecl installation, should not appear version mismatch