Comparison of PHP frameworks

Source: Internet
Author: User
Comparison between the three major PHP frameworks I have used CI, ThinkPHP, Phalcon, and other frameworks for more than a year.

CI

Advantages:

The entry threshold of this framework is very easy to learn and use. The framework is very small and static, and the framework is easy to expand. the documentation is more detailed.


Disadvantages:

The disadvantage of hiding it in an extremely easy-to-use manner is that the insecure feature is not completely lacking many things. for example, if you want to use mongoDB, you have to implement the interface yourself... operations on data are not too secure. for example, the update and delete operations are not secure. At present, sae bae is not supported (after all, it is in Europe). The support for large projects is not good for small projects.


ThinkPHP

Advantages:

This framework is easy to use, easy to learn, and secure. tools that are well supported by bae sae are also very powerful. it supports large project development and easy to expand. all Chinese documents. In general, this framework is suitable for Chinese users to use better performance. strong CI


Disadvantages:

Configuration is somewhat complicated for some people (in fact, it is because they have not carefully read the framework source code). some components are lagging behind and some components are not described in this document.


Phalcon

Advantages:

Using the C extension method to write high performance, easy to learn, and easy to use its DI mechanism is very good. it is also a full-featured framework suitable for projects of all sizes. you can use the development of various projects restful api, rpc... compared with yaf, yaf provides more comprehensive functions. yaf itself does not have yaf. this is also the reason why I chose this framework. The performance is only lower than yaf. However, due to its more comprehensive functions, I decided to choose this framework.


Disadvantages:

It is not easy to modify PHP programmers, but it does not matter for C programmers (I originally wrote C) no Chinese documents only Version 0.7 is available in Chinese documents, so I will release phalcon 1.3.0 documents in my blog one after another. the translation security is not easy because of the use of extended installation methods, so it is relative to other frameworks. you need to install phalcon manually. (For more information about the installation method, see phalcon installation in my blog)


These frameworks say that I like CI very much. It is light and easy to learn ThinkPHP. the function is full and the performance is strong. Phalcon. the powerful function is also powerful. small projects can use CI medium-sized projects that require convenient program installation. you can use ThinkPHP for large-scale performance-demanding projects and Phalcon (provided that you have to understand the English documentation)


Performance comparison of the three frameworks

Phalcon> ThinkPHP> CI

Among them, Phalcon performance is more than twice the performance of the latter two ThinkPHP performance is only a little better than CI


Easy to Learn

CI> ThinkPHP> Phalcon


Function

Phalcon, ThinkPHP> CI


Security

ThinkPHP> Phalcon> CI

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.