PEAR introduction: Use PEAR to write your next php program
Content:
What is PEAR?
Why PEAR?
What benefits does PEAR bring to me?
PEAR Encoding Rules
Start using PEAR
Summary
Related Resources
Author profile
Panfan (Night Sailer) (nightsailer@hotmail.com)
Beijing Saidi Network Information Technology Co., Ltd.
June 2001
You may already be a veteran of PHP and have written a lot of very good code. However, if you want to add them to your current project, is it difficult? Your friend wants to use your code as a module in his project, but you find that you have used a completely different encoding style to adapt to it. It is better to rewrite it!
Please come with me and use the PEAR standard to compile your PHP program. Your program will be more dynamic, your programs and code will be easily integrated with other Masters' code. PEAR, like CPAN's for PERL, will make PHP generate higher energy.
What is PEAR?
PEAR is the abbreviation of the PHP Extension and Application Repository. It is a code repository for PHP extensions and applications. In short, PEAR is the CPAN of PHP.
Why PEAR?
PHP is a very good scripting language that is concise and efficient. With the release of 4.0, more and more people use it to develop dynamic websites. It can be said that, PHP has become one of the best INTERNET development languages. Especially for website developers who need to develop small and medium-sized commercial applications quickly and efficiently, PHP is the preferred language. However, with the increasing number of PHP applications, there is a lack of unified standards and effective management for these applications. Therefore, it is difficult for the PHP community to share their code and applications as easily as those in the PERL community, because PHP lacks a unified code library like CPAN to classify and manage application code modules (everyone familiar with PERL knows that CPAN is a huge library of PERL extension modules, the written application modules can be placed under the appropriate category directory under CPAN. Other users can easily reuse them. Of course, you also need to follow the rules when writing the application module .)
To this end, PEAR came into being, and has been distributed along with the PHP core since 4.04.
What benefits does PEAR bring to me?
1. as mentioned above, PEAR manages the PEAR application code library according to certain categories. Your PEAR code can be organized into appropriate directories, others can easily retrieve and share your results.
2. PEAR is not only a code repository, but also a standard. Using this standard to write your PHP code will enhance the readability and reusability of your program and reduce the chance of errors.
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.