Yii 2 and Laravel 5, which is better for corporate/team use?

Source: Internet
Author: User
Keywords Laravel php thinkphp yii2 yii
Tags php framework
First of all, the team, PHP developers about 20~30 people, the front end of about 10 people, a total of dozens of projects developed/maintained, of which about 70% are internal use of projects. The performance requirements for PHP are not very high for projects that provide external use, so there is no need to think too much about performance.

Recently in the framework of the selection, before the use of thinkphp, for several years, but with the business needs, TP does not meet the requirements, want to change a framework, in Yii 2 and Laravel 5 selected.

Reference question: Yii2 and Laravel which is the future? -PHP Framework

Reply content:

Yii and Laravel at present, are the best PHP framework, Laravel Advantage is better to write neat code, which stems from its excellent design pattern. The advantages of Yii are very good scalability and extremely stable performance, born for large projects.
In addition, Laravel has been absorbing the most advanced design ideas, so the changes are very fast, laravel5 and Laravel4 are very different, yii so far two versions, the change is not very big, but the scalability is very good, performance is good, security is passed the test.
Since you are doing large-scale enterprise project development, on the scalability, stability and team combat requirements are relatively high, comprehensive than down, Yii is not two choice. If the change can solve the problem, I think the cto/ceo should be replaced. What are you doing with that new? Laravel4 can do it.
Take a look at the community heat of the frame, the number of contributors to the module and the quality. The framework itself is nothing, and the community is important. Also, you must have the people in your team who eat well, or else the number is no more. Vain From a team development perspective, I think it's pretty good,
Editor-friendly (show vim flow without plugins to write Python it),
The strict OOP,
Naming strict specifications,
Native support is rich in features,
Component is fungible,
The extended library is rich.

Disadvantages?
High coupling? Who wants you to use its V-level? Pure API-style development no? System Architecture Design No, don't bb!.
Maybe it's a high learning cost, right? (And I didn't think.) Eat this rice, no this stainless steel drill, MO The porcelain live, understand the bottom is a bit difficult.
Performance? Not have not seen the use of yii to do gambling class system, their brains complement that system of PV and concurrency!

Ps:
It's another story for those who like solo! You are enough to talk about elegance!
Enterprise wants is the performance is stable, the development efficiency is quick, the standard unification is easy to maintain!
What code elegant not elegant, can walk away!
Business code writing is not elegant, but also you understand the wrong framework of the characteristics, or the level is limited!
Do you know how much less collaborative it is to write code out of spec?
The code to write the drift is not beautiful responsibility lies in the personal level of writing code, not the framework.
Enterprise is a sacrifice of individuality for unified efficiency of the place!
This is still not enterprise-level development? What is the personal development doctrine?
Is it enough to wipe someone's butt? I'm done wiping it!

How do I feel laravel other than the route is a special highlight (can be mixed mode), other yii have!
Laravel's route seems to be Django, sometimes think of that kind of DIY URL configuration may be sky-high, I am the whole people are not good! It is recommended to use YII framework, the current domestic large-scale financial management peer products (formerly in the team), including their own current business in several products are used in the YII framework, of course, currently using YII2. Collaboration and modularity are very OK.
Laravel is also good, the question is, which one is more suitable for themselves and easier for team to work together. Why don't you try Symfony2 look at the source code and pick the ones you like? Yii2laravel, who died first Laravel 5 is much better than laravel 4. The second Laravel framework is perfect for team warfare ~ ~ Basically the most logical architecture in the PHP framework.
  • 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.