What is PEAR? What is PECL? Two confusing concepts in PHP, pearpecl. What is PEAR? What is PECL? In PHP, there are two confusing concepts. pearpecl outlines PEAR and PECL, which we will know when learning PHP, but few people seem to use PEAR? What is PECL? Two confusing concepts in PHP, pearpecl
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 ~~
Why? What is PECL? There are two confusing concepts in PHP. pearpecl outlines PEAR and PECL, which we will know when we are new to PHP, but few seem to be useful...