Home >Backend Development >PHP Tutorial >What is PEAR? What is PECL? _PHP Tutorial
This article mainly introduces what is PEAR? What is PECL? Two easily confused concepts in PHP. This article explains their differences in concise language. Friends who need it can For reference
Overview
Regarding PEAR and PECL, I knew about them when I first learned PHP, but it seems that few people use them. Plus, I used to do development under Windows, so I don’t know much about them. Now I have switched to Mac. Get these two things straight.
What is PEAR
PEAR’s full name 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
The full name of PECL 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~~