Thinkphp5-to learn ThinkPHP, should I learn ThinkPHP 3.2 or 5.0?

Source: Internet
Author: User
I have had Codeigniter's programming experience for nearly a year. if I want to learn ThinkPHP, I found that a 5.0 version has already appeared, but 5.0 is everywhere said to be an API, I am mainly engaged in web development. from the perspective of employment, should I study 3.2 or 5.0? I hope you can give me some suggestions and have had Codeigniter's programming experience for nearly one year. if you want to learn ThinkPHP, you will find that a version 5.0 has already appeared.
However, 5.0 is widely used for API development, and I am mainly engaged in web development.
From the perspective of employment, should I study 3.2 or 5.0?

Hope you guys can give me some suggestions.

The problem has been disabled. cause: the problem cannot obtain the exact result.

Reply content:

I have had Codeigniter's programming experience for nearly one year. if I want to learn ThinkPHP, I found that a 5.0 version already exists.
However, 5.0 is widely used for API development, and I am mainly engaged in web development.
From the perspective of employment, should I study 3.2 or 5.0?

Hope you guys can give me some suggestions.

If you are persistent in TP, we recommend that you start from 3.2.

3.2.

5. I want to propose an API gimmick for 3.2, but the basic framework will not be significantly changed. I have no discomfort from 3.2 to 5.0, there is no stable version in version 5.0, so there should be few production environments.

The recommendation is 3.2.

In fact, there are also YII2, laravel, and yaf... There are a lot of frameworks, which are no more restrictive than TP.

In terms of learning value, YII2 and laravel should be higher. The new features and new design patterns are all very eye-catching.
TP object-oriented is not good enough, so it seems like functional programming.

If you have CI experience, you can view the code. the YII2 and laravel documents are stored in the code. you can view them in combination and you need to understand them in English.
TP in the Chinese documentation, not bad, Chinese people on hand fast.

Learn more and make the final decision.
Enjoy ~

If you have any ci experience, don't learn thinkphp. you just need to learn a full-stack framework for enterprise-level applications. Either symfony, laravel, phalcon, or yii can be used. After completing the course, I will improve my grades.

I suggest you studylaravel.

We recommend that you use yaf

5.0 Ah, it is very convenient to use the API later

Since the landlord said it was from the employment perspective, let's talk about our practical application projects.

Currently, the latest TP framework used by the company in the production environment is 3.2.2, but most of them are still in versions earlier than 3.2. (The cost of changing the framework is too high. from the perspective of stability, this version will not be updated as long as there are not too many problems)

The official website said that "the official version 5.0 is planned to be released in the first half of this year". I tried to use 5.0 as a framework for a new project. However, there are still many problems in actual use, such:

  1. Some minor structures have not yet been finalized (I once mentioned an issue to the official team on Github, but the official team did not explain why such code logic appeared, so I have this judgment );

  2. There are still a lot of small bugs in 5.0, and some small bugs have been fixed for the official team by the way during the intermediate use process;

  3. Without the use of the previous version of TP as the basis, it is difficult to adapt to the situation where 5.0 does not have many documents or related questions.

  4. From the official graphs on Github, we can see that code is frequently submitted, and 5.0 is in fast iteration, so it is not worth further study at this time.

As a result, 5.0 is unstable in general, and the company is unlikely to use it in projects in the production environment. we recommend that you choose 3.2 based on the employment price/performance ratio.

3.2, 5.0 or the test version is unstable. if you want to use it, you can still

From the perspective of learning, 3.2 is relatively stable, with many materials and rich community discussions. But since you already have codeigniter experience, why study thinkphp. As recommended by everyone, learning laravel is of great help to design patterns, code styles, system designs, and so on. it is also widely used, the tutorials and materials are extremely rich (laracon is coming soon this year ). In addition, learning phalcon is also very good. The code written in c is of great learning significance. Of course, symfony 2 and yii are also good (better at thinkphp ).

Only 3.2

It is officially stated that 5.0 is a beta version and is not recommended only after the official version is released.

I suggest you learn laravel. it is a good framework.

First, if you want to take up your job as soon as possible, we recommend that you start from 3.2 to 5.0, because many old projects are still developed based on 3.2 and need maintenance. The cost of learning more than 3.2 is not very high. Many places are even identical code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.