Construct a PHP framework

Source: Internet
Author: User
Simple, good performance, easy-to-read source code, and relatively mature libraries, such as URL redirection, are required... Simple, good performance, easy-to-read source code, and relatively mature libraries, such as URL redirection, are required...

Reply content:

Simple, good performance, easy-to-read source code, and relatively mature libraries, such as URL redirection, are required...

Symfony, supports plugin and comes with plugin Doctrine Orm. The document is well written. Of course, you 'd better use English.
2.0 in http://symfony.com
1.4 In http://symfony-project.org

Several people upstairs said that the framework is useless or troublesome, isn't it too impetuous? Isn't the purpose of the framework just to promote the clarity of code regulations? This is even a huge role. Can you ensure that everyone in the team members can write clear code?

In addition, database access is not a required function of the framework. The framework has nothing to do with database access. In addition, it is useless to use SQL statements directly. How can you ensure the flexibility and maintainability of SQL statements?

CodeIgniter

If you must use a framework, I have to recommend lotusphp, plug-in type, and you can use the components you need. If you don't need them, take them out. Performance is definitely one of the most important in many frameworks. If there is a problem, contact the author directly.
Http://code.google.com/p/lotusphp/

Zend is okay, official. Recently I heard of a new yaf, which is made in China and is said to be a new generation framework.

I think the framework is still necessary, but it is complicated and requires some mental preparation.

Generally, the framework is not needed to write small things. In addition, I feel very troublesome about the framework.
If you only need to connect to the database, give you a function:

function sql_query($sqlcon){         $con=mysql_connect(DB_HOST, DB_USER,DB_PASSWORD);      mysql_select_db(DB_NAME);      mysql_query("SET NAMES 'utf8'");      $result = mysql_query($sqlcon);      mysql_close($con);      return $result;}

You only need to use SQL _query (SQL statement.
If you do not know SQL statements, you are advised to go to w3school to learn one.

Yaf of snow migratory birds is recommended. It is often awesome to use the php framework of extension implementation.

Codeigniter!

Like YiiFramework. Check the source code. By the way, you can learn the design mode.

There are many mature frameworks at present. I would like to introduce you to some of the most popular frameworks.
Zend, yii, symfony, codeigniter

Support for ci. simple and brief

Codeigniter

Pull Laravel

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.