PHP extension Modules pecl, pear, and Perl differ _php tips

Source: Internet
Author: User
Tags lowercase pear

A brief summary:
Pear: A written comparison specification, a foreign popular Toolbox code set
pecl:php expansion pack, but does not belong to PHP basic extension scope
Perl: A script-level language older than PHP that PHP borrowed from his regular expression section

Two, Pear, Pecl are the collection of PHP expansion modules. is to expand PHP two ways:


A. One is to write functions and classes in pure PHP code.
Pear is such a project. Pear is the official open source class library for PHP (abbreviated by PHP Extension and application repository). Pear is the meaning of pears in English. Pear writes the common functions of PHP program development into Class library, which covers many aspects such as page face, database access, file operation, data structure, caching operation, network protocol and so on, which can be easily used by users. It is a PHP extension and application of a code warehouse, simply, pear is the PHP cpan. Its homepage is pear.php.net.


B. Another way is to use C or C + + to write an external module loaded into PHP.
Pecl (The PHP Extension Community Library) is what this is all about, and the standard extension of PHP can complement the functionality required in actual development. All extensions need to be installed, appearing as DLLs under Windows, and compiled separately under Linux, in the form of C written in accordance with the official PHP standard, although the source is open but the average person cannot change the source code at will. Its homepage is pecl.php.net.
The most straightforward statement: Pear is the top extension of PHP, PECL is the underlying extension of PHP.
Both of these methods provide ready-made functions or classes for specific applications, essentially the same.

The difference between PEAR, Pecl and Perl

Pear is an abbreviation of the PHP extension and the application library (the PHP Extension and application Repository). It is a PHP extension and application of a code warehouse, simply, pear is the PHP cpan.
PECL (PHP Extension Community Library), an extension of PHP, provides a series of known extensions, written in other languages, such as C + +, most of which are in the form of DLL (dynamic link library), faster than pear, but unlike pear, , PECL needs to be configured on the server and registered to the host.
The original designer of Perl (practical extraction and Language) was Larry Wall (Larry Wall), which he published on December 18, 1987. Perl borrows the features of C, sed, awk, shell scripting, and many other programming languages. One of the most important features is its ability to integrate regular expressions internally, as well as the large Third-party code base CPAN. In short, Perl is as powerful as C, as handy as scripting languages like awk and sed. Perl is commonly referred to as the "utility Report Extraction Language" (practical extraction and Language), and you may also see "Perl", all of which are lowercase. Generally, "Perl", with uppercase P, refers to the language itself, while "Perl", lowercase p, refers to the interpreter that the program runs.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.