PHP programmers should use 10 components _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
10 components that PHP programmers should use. Open-source solutions can help you a lot. for example, open-source code is done by many people, so it is often better than a person. You can get a free open-source code solution that can help you a lot, such:

  • The open source code is done by many people, so it is often better than the result of one person.
  • You can get free code updates and upgrades, or you need to write new content yourself.
  • You have saved development time and improved the quality of the project.

After so many years of developmentNetwork DevelopmentPersonnel, I have prepared a PHP file myself.ComponentsAnd these components can be easily deployed in any project.

Email sending

Each website sends an email. Although PHP's email () function is good, we can't do anything when we need to send attachments or use the SMTP protocol to send them. So in this case, you should usePhpmailer.

Phpmailer v5.1 download (the Chinese help and English help files are included)

User Management

Another common module is the user management module. This module allows users to log on, log out, and register. I personally cannot find a good one.ComponentsTo complete this task, so I wrotePhp user class. This component can even be used in applications that need to be publicly released, because it can be customized to use different data tables and variable types.

Get RSS

You have thought about adding RSS information to your program.Components? Although it is easy to compile such a component (Tutorial), But more times you need more comprehensive features, you need to useMagpie RSS.

Geographic positioning

Most of the time, you will want to know which countries and regions the website visitors come from,MaxmindA solution to this problem is provided. (Tutorial)

Obtain remote information

Sometimes the RSS function does not meet your needs for obtaining remote information, because you want to capture and save the information of the entire web page. You will needHtmlSQL classThis component. You can use SQL statements to obtain webpage information. is it cool?

Reference announcement

In our time, sending and accepting quote notices is a very important function of websites. If you usePhp trackbackThis component can be easily implemented.

Template system

The template system is used by all websites.Components. The template engine saves you a lot of time and makes it easy to change the website style and design.SmartyIs a very good template system, basically all PHP websites are using it.

BB code

BB code is a function of the Forum in the past, but as more and more websites use this function to make themselves more friendly, I believe you also want to try this function. But the problem is that BB codeComponentsWriting requires a lot of time and experience. I wonder if you can write it by yourself. If you cannot, useStringParser BBcode classRight.

PayPal payment system

You may know that for websites that want to set up a PayPal payment system on their own websites, PayPal provides a set of very good application interfaces (APIs ).Paypal IPN integration classThe component allows you to implement this function within 20 minutes.

Editor controls

For me, usePhpMyAdmin and a general text editor can modify the website content. But for my customers, they need a WYSIWYG powerful editor to help them work late. Written in javascriptTinyMCE controlSuch a component can save you a lot of time.

The open source code is done by many people, so it is usually better than the result of one person. You can get free code...

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.