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.
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 idea is very advanced, very suitable for the application of various development models TDD, DDD and BDD, as a framework, it is ready for everything, composer is a PHP future, no composer,php must go to the decline.
Laravel's greatest features and excellence are the collection of PHP's new features, as well as a variety of design patterns, Ioc containers, dependency injection, and more.
Disadvantages
Component-based framework, so it's rather bloated
Summary of the pros and cons of PHP's various mainstream frameworks