Home>Article>PHP Framework> The difference between thinkphp and yii

The difference between thinkphp and yii

(*-*)浩
(*-*)浩 Original
2019-10-30 13:26:37 2653browse

The difference between thinkphp and yii

#thinkPHP: The community is popular, and the Chinese tutorials for beginners are very detailed and relatively easy to get started.(Recommended learning:thinkphp5)

Most of the code in web project development is repeated, so automated code generation tools are essential, as of the latest tp3.2.3 , I still haven’t seen any sign that tp has any support for automation tools; gii’s very easy-to-use modeling modules, controllers (actions), CURD operations and other functions can reduce the development cycle.

tp lacks a data migration tool, which has led to great difficulties in later maintenance of the project

Yii is completely built in an object-oriented way, and commonly used web class libraries are presented in component form. Finally, Improved the situation when PHP programmers write code while Baidu: 'Which function should be used for XX function?'

Looking back at TP, it only encapsulates commonly used class libraries into classes and uses whatever you want. There is no careful design at all. It is completely like a programmer who has accumulated many class libraries for many years.

Yii is more object-oriented.

ThinkPHP was born to simplify enterprise-level application development and agile WEB application development. It was first born in early 2006, and was officially renamed ThinkPHP on New Year's Day 2007, and was released under the Apache2 open source agreement.

ThinkPHP has been adhering to the simple and practical design principle since its birth. While maintaining excellent performance and minimal code, it also focuses on ease of use. And it has many original functions and features. With the active participation of the community team, it is continuously optimized and improved in terms of ease of use, scalability and performance.

Yii Framework is a component-based, high-performance PHP framework for developing large-scale web applications. Yii provides almost everything needed for today's Web 2.0 application development. Yii is one of the most efficient PHP frameworks. Yii is the brainchild of founder Xue Qiang and began development on January 1, 2008.

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.

The above is the detailed content of The difference between thinkphp and yii. 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
Previous article:Can php7 run thinkphp5? Next article:Can php7 run thinkphp5?