Answer the question
In order to leave comments, you need to log in
Why is it advised not to choose yii2 for development?
I saw a lot of articles where they write that it is not worth starting new projects on yii2, because. It is better to take something more progressive, for example laravel.
Of course, this question can be answered absurdly and philosophically "a framework is just a tool and you can use it quite calmly whatever you want."
But I would just like to know the list of reasons why exactly, it is better to take laravel or something else and not start a project with yii2.
I gradually used 2 frameworks, and did not notice things in which yii is inferior (except for the glued backend and front) to laravel, plus yii2 was less demanding on hardware and was quietly deployed on shared hosts.
Scope of small and medium projects.
Answer the question
In order to leave comments, you need to log in
1. Yii is dead. Outdated by 10 years in terms of approaches and code base, and does not develop.
2. Bad design. Global state for everything, inheritance from the base class of the model, validation through arrays in the same place, inheritance for extending everything and everything and other nonsense. The absence of many convenient features such as normal DI / resolver argument, which is only worth the flexibility of configuring services in Sympha.
3. Own bikes instead of something ready-
made 4. All components are nailed down and are not replaceable. This makes the code on it non-extensible and non-testable (Well, that is, in theory, having rewritten the floor of the framework and 100500 of your adapters, you can write normally, but those who want to write normally just leave Yii).
5. A weak community that sits on it because it has not mastered anything else / generates CRUDs through Gii (It would not be possible to replace them with postgrest and other wrappers above the base) / inert coders who do not care what to do if only they have enough for bread.
6. All frameworks are far (very) from the ideal, but Yii is far behind the others.
Pay attention only to constructive criticism. If the argument is based on phrases in the style: convenient, little code, a couple of lines ... This is a very bad beacon.
Good should be evaluated: maintainability, extensibility, testability, performance and readability.
IMHO, it has already passed the peak of its development and popularity and will be forgotten, like many frameworks before it.
Even if you do not take into account a lot of very practical arguments in other answers, it is not worth starting new projects on Yii2 for the reason that the 2nd version has been officially in the feature freeze state for almost two years now . does not really develop. Two years is a huge period in IT, for example, support for the just released PHP 7.4 and, moreover, the 8th version can no longer be expected there.
Those. You can still support existing projects there, but it's better to start a new one on a framework that has active development and a clear development plan. Symfony is the most predictable in this regard .
Yii was developed by one person - Qiang Xue. He wrote 90% of the code for both versions.
He left the project in 2015.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question