Advantages and disadvantages of various mainstream PHP frameworks

Source: Internet
Author: User
Tags php framework codeigniter yii

thinkphp

Thinkphp (FCS) is a lightweight, medium-sized framework that is ported from the struts structure of Java to the Chinese PHP development framework. It uses object-oriented development structure and MVC pattern, and simulates the implementation of Struts tag library, all aspects are more humane, familiar with the Java EE developers relatively easy to use, suitable for beginners PHP framework. Thinkphp's mission is to simplify development, improve efficiency and ease of expansion, and its support for databases has included MySQL, MSSQL, Sqlite, Pgsql, Oracle, and PDO. Thinkphp has a wealth of documentation and examples, the framework is more compatible, but its function is limited, so it is more suitable for small and medium-sized project development.

Advantages

1. Easy to get started, rich in Chinese documents;

2. The framework has strong compatibility, PHP4 and PHP5 are fully compatible, fully support UTF8 and so on.

3. Suitable for small and medium project development

Disadvantages

1. Support for Ajax is not very good;

2. The directory structure is chaotic, it takes time to tidy up;

3. Easy to get started, but more difficult to learn.

Yii

Yii is a high-performance, component-based PHP framework for developing large Web applications. Yii is written in strict OOP, with well-established library references and comprehensive tutorials. From mvc,dao/activerecord,widgets,caching, hierarchical Rbac,web services, to theming, i18n and l10n,yii provide almost everything you need for today's Web 2.0 application development. In fact, Yii is one of the most efficient PHP frameworks.

Advantages

Pure OOP

For large-scale Web applications

Easy to use model

The development speed is fast, the operation speed is also fast. Excellent performance and rich functionality

Use the command-line tool.

Disadvantages:

Less guidance and consideration of the model layer

Fewer document instances

Too much English

Requires the proficiency of PHP technology, OOP programming to be skilled!

View is not the ideal view, the ideal view may be just HTML code, not the PHP code.

" about the CodeIgniter "

Advantages :

Code igniter The principle of "simplicity is beauty". There is no fancy design pattern, no ornate object structure, everything is so simple. A few lines of code can start running, and a few lines of code can be used to output it. It is a model of "Boulevard to Jane". Simple configuration, all the configuration using PHP script configuration, execution efficiency, with basic routing capabilities, to a certain degree of routing, with the initial layout function, to create a certain degree of interface appearance; database layer encapsulation is good, with basic MVC function. Fast and concise, not much code, high performance, simple framework, easy to use, low learning cost, document details; With a lot of easy to use library, framework for small applications.

Disadvantages:

The realization of itself is not ideal. The internal structure is too chaotic, though simple to use, but lacks the ability to expand. The model layer is simply understood as a database operation. The framework is simple enough to meet small applications and is slightly less able to meet the needs of midsize applications.

Evaluation:

Overall, take CodeIgniter to complete the simple and fast application is worth, at the same time can construct a certain degree of layout, easy to reuse the template, the data operation layer is good encapsulation, and codeigniter not use many too complex design patterns, Good execution performance and code readability. As for the additional library is also good, concise and efficient.

Lavarel Frame
Advantages
Laravel's design ideas are very advanced and well suited for applications in various development modes TDD, DDD and BDD, as a box
Frame, it is ready for everything, composer is a PHP future, no composer,php must go to the decline.
Laravel's greatest feature and Excellence is the collection of PHP's new features, as well as a variety of design patterns,
Ioc container, Dependency injection and so on.
Disadvantages
Component-based framework, so it's rather bloated

Advantages and disadvantages of various mainstream PHP frameworks

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.