Home >Backend Development >PHP Tutorial >Take you to understand the three common frameworks of PHP: thinkphp, yaf, laravel

Take you to understand the three common frameworks of PHP: thinkphp, yaf, laravel

烟雨青岚
烟雨青岚forward
2020-07-18 11:38:023677browse

Take you to understand the three common frameworks of PHP: thinkphp, yaf, laravel

The PHP framework is an infrastructure that can improve development efficiency, create more stable programs, and reduce developers from repeatedly writing code during the project development process. Let’s take a look at the three commonly used frameworks.

I’m not going to talk about who is better or worse, just talk about my experience of several frameworks I have used:

1. ThinkPHP The documentation is all in Chinese, easy to use, and it is good for configuring the environment No requirements. When I was in school, I combined sae to make a small website with an activity page, and it was done quickly. But when I wanted to add some extension functions, I was confused. First, Baidu couldn't find the answer, and second, it was troublesome to configure.

2. Yaf The work of Brother Ya Yicheng is said to be the fastest PHP framework in the world. Many large company projects are developed on this basis, using C The extension you write has to be compiled during installation, which is a bit troublesome and requires you to create a lot of wheels yourself.

3. Laravel has been very popular in the past two years. The built-in user permissions and blade templates are very convenient to use. Combined with composer, you can integrate all the functions you want to write but don't know how to write or are too lazy to write.

But when there is no domestic mirror, every time composer install/update is like walking on a tightrope, the production environment is divided. Minutes to explode.

The documents are in Chinese and English. If you encounter problems, you can find many answers on stackoverflow.

Jump out and say that it is most practical to have a set of development tools that you are most familiar with when it comes to specific business scenarios, instead of worrying about which framework to use.

They are all kitchen knives, some people use them to kill pigs, and some people use them to carve flowers.

Besides, most of the time you are not writing code, but changing requirements.

Thank you all for reading, I hope you will benefit from it.

Recommended tutorial: "php tutorial"

The above is the detailed content of Take you to understand the three common frameworks of PHP: thinkphp, yaf, laravel. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete