Which of the following is the future of yii2 and laravel?

Source: Internet
Author: User
Reply to performance, speed, security, and scalability in terms of performance, speed, security, and scalability: there are no standard answers to many technical questions, and do not try to get a standard answer, but we need to consider it from the perspective of PHP programmers. Yii and Laravel are both good frameworks. no one says you have to select only one. good PHP programmers don't need to care too much about what frameworks to use, because they can pick up any framework in a short time to start development, and quickly learn the design ideas and skills of this framework. If you want to compare one or several aspects of the framework, there is a lot of information on the Internet, you don't need to ask, you can search for it:

Suggestions for Technology stack choice: Laravel 5 vs Yii 2
Posts about Yii 2.0 vs. laravel on PHP Frameworks
Yii2 vs Laravel 5
Https://www.quora.com/Yii-2-0-vs-Laravel-5-1-LTS-which-one-is-best-for-large-projects
Yii2 vs Laravel 5: PHP

But do not expect to find a standard answer. the purpose of comparison is to better understand it, rather than killing one by a hammer. it must be biased, you also lose the opportunity to learn different ideas.

Technology is a matter of taste, that is to say, it is not just a simple affirmation or rejection of performance and scalability, but the most important thing is the use scenario. A framework is suitable for the environment of a team project, but may not be suitable for another one. senior technical staff will agree with this.

You should do your homework on your own and give your answers. that is what makes you the most convincing. others' opinions cannot replace your specific understanding of your projects and teams. We can only talk about feelings. Laravel5 is a framework that is difficult to talk about in the future. it feels good! Performance, speed, security, and scalability are all yii's strengths. laravel's strengths are advanced concepts. Yii also draws on many laravel concepts, such as ActiveRecord. of course, laravel also draws on Ruby on rails.
Yii is a heavyweight framework. I like Yii2. It is elegant and easy to extend to allow you develop enterprise website quickly. Crab Demon
Although I think this kind of choice actually looks more like ape dung, I still follow your requirements and help you collect some materials. You may not be able to answer which is the future, but hope it will help you make up your mind. In fact, it is OK to jump after learning one.

Performance


I only find data from one of my friends. For "hello world" benchmark only, yii2 has 153 requests and laravel4 has 69 records per second. Relatively one-sided, just for reference. In a few months, the latest network framework may have a major score of Yii2. Laravel's current score is "not finished". three platforms, I7, Amazon EC2, and ultra-large scale Peak, all failed. In PHP, only yaf of laruence is the best. But to be honest, that framework is not very useful.

Speed


With performance, the running efficiency is no longer considered, so the development efficiency is considered. In general, Yii2's selling point is out-of-the-box, flexible scalability and ease of use. In this case, it cannot be said that Laravel4 development efficiency is slow. it can only be said that Yii2 has some considerations for medium and large project development. It provides many tools, covering the construction of scaffolding, development and debugging, unit testing, function testing, acceptance testing, and performance tuning. Laravel4 has a strong advantage and is very popular. many people rush into Laravel's arms, so there are a lot of Chinese and English materials. Laravel has a short learning curve, but Yii2 is easy to get started with, proficient, and cherished. My only opinion on Laravel is that when the ghost guy names the application components, he is always busy with his poems and starts some strange names that cannot be used in business. This makes non-English-speaking developers uncomfortable. Yii2 is mainly developed by a Chinese, a German, and a Mao Zi, who do not like English.

Security


Every framework claims to be safe. who knows ...... This is not an expert. I only know that many large enterprises prefer to use Yii, but Yii2 is inspired by several internationally renowned security Masters (reviewing code and redeploying features ).

Scalability


Scalability is good. Laravel inherits the excellent decoupling feature of Symfony2, and Yii fully embraces features such as Composer, Dependency inversion, and Service Locater in yii2. Everyone is quite flexible. I am embarrassed to say that I am a modern framework that does not support DI these years. To explain the subtle differences between them, here we will focus on Symfony2, which gives you N more choices by default. from the very beginning, we will try to make future flexibility as much as possible, the advantage is that there is almost no binding to make you feel at a loss, but there are too many choices and there are too many places to configure. sometimes it is easy for new people to feel at a loss. Yii2 provides you with many default options based on the out-of-the-box principle. these options sometimes make you feel inflexible, but they can be adjusted later. In this regard, these frameworks are flexible, and the difference only exists in the design idea.

Summary

I think it can all be the future. Laravel4 and Yii2 are not the future, because the author is planning to create Laravel5 and Yii 2.1.

Stakeholders: the initiator of the cultural project in yii2. Soft ad: Yii Framework 2.0 Chinese Documentation Yes, laravel is good. However, no company is used. I still don't know whether to choose YIIlaravel in the future. However, I know that laravel versions are updated too frequently. 5.2.20 to 5.2.32 are a lot incompatible and the same code can be run in the former, in the latter, various errors are reported. In addition, the performance is not keeping up.
Yii2 has been used and is not bad. although there are many rules of its own, beginners will not get used to it, but they will find that the development speed is really fast and suitable for development by large teams, the cache is very fine and powerful, and is generated for large projects.
To sum up, laravel seems to be very advanced and may be in the future, but it will take another two years to discuss who is in the future. it's really stupid. you can learn it in two ways.
In terms of code review, when both yii and laravel are put into phpstorm, laravel still has some warnings, but yii has almost no. This means that the ide can recognize the ins and outs of the entire system. Therefore, it is easier for users to know how many times classes and methods are used. This greatly facilitates the later maintenance of refacter. As for the development speed, laravlel5 and yii are too far behind.

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.