Pear is the official Open-source class Library of 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.
Two, why do you use pear?
PHP is a very good scripting language, concise, efficient, with the release of 4.0, more and more people use it for dynamic web site development, it can be said that PHP has become one of the best Internet development language, especially for those who need to be able to quickly, PHP is the preferred language for Web developers who efficiently develop small and medium sized business applications.
But with the growing application of PHP and the lack of uniform standards and effective management of these applications, it is difficult for the PHP community to share each other's code and applications as easily as people in the Perl community, Because PHP lacks a unified code base like CPAN to classify the code modules that govern applications (people familiar with Perl know that Cpan is a huge Perl expansion module warehouse, the written application module can be placed under the appropriate classification directory below CPAN, the other people can easily reuse, Of course, you also need to follow the guidelines when writing application modules. )
For this reason, pear came into being and, starting with 4.04, was distributed along with the PHP core.
Three, what benefits can pear bring to me?
1. As mentioned above, pear manages the Pear application code base according to certain classifications, and your pear code can be organized into the appropriate directory where other people can easily retrieve and share your results.
2.PEAR is not just a code warehouse, it is also a standard, use this standard to write your PHP code, will enhance your program readability, reusability, reduce the chance of error.
3.PEAR builds a framework for you by providing 2 classes, implementing such functions as destructors and error trapping, which you can use to inherit.
Four, what is the purpose of Pear's offering?
A PHP user's open source (open-sourced) Code Organization Library
A code distribution and package maintenance and system
A standard style written in PHP
PHP base class (PFC)
PHP Extended Public Library (PECL), in more detail below
A website that supports php/pear groups, mailing lists, and download mirrors
Five, what are the introductory information for pear to view?
PHP Pear Official Station
http://pear.php.net/
PHP Pear Chinese Station
http://www.pearchina.com/
PHP Pear Handbook
http://pear.phpv.net/cn/
Use pear to write your next PHP program
http://www.ibm.com/developerworks/cn/linux/sdk/php/pear1/
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.