Home >PHP Framework >ThinkPHP >What are the advantages and disadvantages of yii and thinkphp

What are the advantages and disadvantages of yii and thinkphp

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-27 16:00:483477browse

What are the advantages and disadvantages of yii and thinkphp

1. ThinkPHP

ThinkPHP (FCS) is a lightweight medium-sized framework derived from Java A Chinese PHP development framework transplanted from the Struts structure. It uses object-oriented development structure and MVC mode, and simulates the implementation of Struts tag library. It is more user-friendly in all aspects. It is relatively easy for developers familiar with J2EE to get started, and it is suitable for beginners of PHP framework. ThinkPHP's purpose is to simplify development, improve efficiency, and be easy to expand. Its database support already includes support for MySQL, MSSQL, Sqlite, PgSQL, Oracle, and PDO. ThinkPHP has rich documentation and examples, and the framework has strong compatibility, but its functions are limited, so it is more suitable for the development of small and medium-sized projects.

Related recommendations: "ThinkPHP Tutorial"

Advantages:

1. With the help of mature Java ideas;

2. Easy to Get started, there are rich Chinese documents; low learning costs, high community activity;

3. The framework has strong compatibility, PHP4 and PHP5 are fully compatible, fully supports UTF8, etc.;

4 . Suitable for the development of small and medium-sized projects;

5. Introduce the composer package management tool from thinkphp3.2.2.

Disadvantages:

1. The support for Ajax is not very good;

2. The directory structure is confusing, which is worse than other framework directory structures;

3. It is easy to get started, but difficult to learn in depth.

2. Yii

Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials. From MVC, DAO/ActiveRecord, widgets, caching, hierarchical RBAC, web services, to theming, I18N and L10N, Yii provides almost everything needed for today's Web 2.0 application development. In fact, Yii is one of the most efficient PHP frameworks.

Advantages:

1. Pure OOP;

2. Used for large-scale web applications;

3. The model is easy to use;

4. The development speed is fast and the running speed is also fast. Excellent performance and rich functions;

5. Use command line tools;

6. Support composer package management tool.

Disadvantages:

1. Less guidance and consideration for the Model layer;

2. Fewer document examples;

3. Too much English ;

4. It is required to be proficient in PHP technology and proficient in OOP programming;

5. View is not an ideal view. The ideal view may only be html code and will not involve PHP code.

The above is the detailed content of What are the advantages and disadvantages of yii and thinkphp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn