Four open source frameworks for PHP (TP, CI, Laravel, Yii)

1. ThinkPHP
    ThinkPHP is referred to as TP. TP draws on the idea of ​​Java, based on PHP5, and makes full use of the features of PHP5. The deployment is simple and only requires one entry file, which is simple and efficient. The Chinese document is complete, and the entry is super easy. It comes with a template engine, with unique data verification and auto-fill functions, and the frame update speed is relatively fast.
    Advantages: This framework is easy to use, easy to learn, safe, and supports bae sae. The tools provided are also very powerful. It can support relatively large project development. Easy to expand. All Chinese documents. In general, this framework is suitable for Chinese people. The performance is better than CI. Some
    disadvantages: the configuration is a bit complicated for some people (in fact, because they haven't read the framework source code carefully) the documentation is a bit lagging and some components are not documented.

2. CodeIgniter
    CodeIgniter is referred to as CI simple configuration. It is quick to get started. All configurations are configured using PHP scripts. There are not many too complicated design patterns. (MVC design pattern) execution performance and code readability are good. The execution efficiency is high, it has basic MVC functions, is fast and concise, the code is small, the framework is easy to use, and it comes with many simple and easy-to-use libraries. The framework is suitable for small and medium-sized projects, as well as large-scale projects, but it has poor scalability. Advantages: The entry barrier of this framework is very low. It is very easy to learn. It is very easy to use. The framework is very small. Static is very easy. The framework is easy to expand. The documentation is more detailed
    . There are a lot of things. For example, if you want to use mongoDB, you have to implement the interface yourself... The operation of data is not too safe, such as update and delete operations, etc. It does not support sae bae, etc. (after all, it is in Europe). Small projects will be very good.

    Comparison of CI and TP: ( http://www.jcodecraeer.com/a/phpjiaocheng/2012/0711/309.html )

3. Laravel
    Laravel's design philosophy is very advanced, very suitable for the application of various development models TDD, DDD and BDD ( http://blog.csdn.net/bennes/article/details/47973129 TDD DDD BDD explanation), as a Framework, it prepares everything for you. Composer is the future of PHP. Without composer, PHP will definitely go into decline. Laravel's biggest feature and excellent point is the collection of relatively new features of PHP, as well as various design patterns, Ioc containers, dependency injection, etc. Therefore, laravel is a framework suitable for learning. It is very different from other frameworks. This also requires you to be very proficient in php and have a solid foundation.
    Advantages: http://www.codeceo.com/article/why-laravel-best-php-framework.html

4. Yii
    Yii is a component-based high-performance PHP framework for developing large-scale web applications. Yii adopts strict OOP writing, and has complete library references and comprehensive tutorials. From MVC, DAO/ActiveRecord, widgets, caching, hierarchical RBAC, Web services, to subjectivity, I18N and L10N, Yii provides almost all the functions needed for today's Web 2.0 application development. And the price of this framework is not too high. In fact, Yii is one of the most efficient PHP frameworks.

Reprinted: https://blog.csdn.net/lixianseng/article/details/53260675

Guess you like

Origin blog.csdn.net/weixin_46622106/article/details/111866606