10 components that PHP programmers should use

  • 2020-03-31 16:45:56
  • OfStack

Open source solutions can help you a lot, such as:

Open source code is done by a lot of people, so it's often better than one person doing it. You can get free code updates and upgrades that you would otherwise have to write yourself. You save development time and improve the quality of the project

Had had for so many years (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/%E7%BD%91%E7%BB%9C%E5%BC%80%E5%8F%91), I compiled a PHP (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/%E7%BB%84%E4%BB%B6) listing, these components can be easily deployed in any project, I often use.

Mail delivery

Every website will need to send mail. PHP's email () function is nice, but it's useless when it comes to sending attachments or using the SMTP protocol. So in this case, you should use (link: http://phpmailer.sourceforge.net/).

(link: http://xiazai.jb51.net/200910/yuanma/PHPMailer.rar) (in English to help with Chinese help files attached)

(link: http://download.csdn.net/source/1784823)

User management

Another commonly used module is the user management module. This module enables users to log in, log out and register. I can't find a good personal feeling (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/%E7%BB%84%E4%BB%B6) to complete the task, so he had to write a (link: http://phpuserclass.com/). This component can even be used in applications that need to be published, because it can be customized to use different data tables, variable types, and so on.

To obtain the RSS

Have you ever want to add to your application (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/%E7%BB%84%E4%BB%B6) to the information of RSS? Although it is easy to write such a component ((link: http://www.webdigity.com/index.php? Action = tutorial; Code = 20)), but more often you need a more comprehensive function, this time you need to use (link: http://magpierss.sourceforge.net/).

geolocation

A lot of times you will want to know that visitors to the site from which countries and regions, (link: http://www.maxmind.com/app/php) is for the solution to this problem is presented. ((link: http://www.webdigity.com/index.php? Action = tutorial; Code = 58))

Get remote information

Sometimes the functionality of RSS is not enough for you to get remote information, because you want to capture and save information from an entire web page. Then you will need this component (link: http://www.jonasjohn.de/lab/htmlsql.htm). It allows you to use SQL statements to get information about web pages, isn't that cool?

A trackback

In our time, sending and receiving citations is a very important function of a website. If use (link: http://phptrackback.sourceforge.net/) the components can be easily done.

The template system

Is all site will use a template system (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/%E7%BB%84%E4%BB%B6). Templating engines can save you a lot of time and make it easy to change the style and design of your website. (link: http://smarty.php.net/) is an excellent templating system that is used by almost all PHP websites.

BB code

BB used to be a forum feature, but as more and more sites use it to make themselves friendlier, you might want to try it out too. But the problem is the BB code (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/%E7%BB%84%E4%BB%B6) writing needs a lot of time and experience, don't know whether you can write yourself. If you cannot, then use (link: http://christian-seiler.de/projekte/php/bbcode/index_en.html).

PayPal payment system

As you may know, PayPal has a great API for sites that want to set up a PayPal payment system on their site. (link: http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html) component can make you realize this function in 20 minutes.

Editor control

  For me, (link: http://blog.csdn.net/teddrummer/archive/2009/10/31/articles/tag/php) MyAdmin and general text editor can change the contents of the website well. But for my clients, they need a WYSIWYG editor to help them work late. Use javascript to write (link: http://tinymce.moxiecode.com/) is a component, using it can make you save a lot of time.


Related articles: