E
E
Evgeny Perin2015-03-31 15:45:34
Yii
Evgeny Perin, 2015-03-31 15:45:34

What to choose, Yii2 or Laravel?

Greetings! The question is actually such, what would you advise me, with my current knowledge? Yii2 with its ability to generate code and have something out of the box, or Laravel, which I like better for code and ease of writing it, but which doesn't have enough goodies to get you started quickly? Can you suggest an alternative? For example, a Laravel assembly with a code generator, or something similar? I understand that a bunch of such questions have already been asked, I read the answers, but I could not decide for myself ... Thank you!
I am not strong in programming yet, I choose a framework to learn programming on a specific task. Now I can only write simple functions/plugins for wordpress. I’ve been looking at these frameworks (Yii2 and Laravel) for a couple of months now, I’ve watched some videos on both, installed both on the local, poked around a little ... But I still couldn’t decide which one to stop. Laravel (watched version 5) seems to be more elegant, it has convenient routing (you can do some things without a controller, and it's generally easier to understand), and other pluses. Yii2 has gii out of the box, a division into frontend and backend (in the advanced version), which is quite a significant plus for a beginner, but otherwise it seems more clumsy...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Makarov, 2015-03-31
@seoperin

As a beginner, it will be very useful for you to understand what the framework has inside and how it works. If you look into the insides of Yii, you will see that every method, every class is documented there, at least abstractions, everything is done as simply as possible. Learning exactly how it works is easy.
If you get into Laravel, everything is very flaky. No comments. To understand how the method works, you often need to crawl through 3-5 layers of abstraction in several classes.
By the way, the Laravel documentation uses a cool trick. Only a part of what the framework gives in general is described. This makes the dock very compact, light and pleasant, but for the rest - either read the code without comments, or watch Laracasts.

E
Evgeny Perin, 2015-03-31
@seoperin

Thank you all very much for your advice. The situation with these frameworks has cleared up a bit. I will try to make the first attempt on Yii2, simply because of the faster start with my knowledge. When I get a hand, I will probably move to conquer laravel or simfony.

P
phpnt, 2015-04-15
@phpnt

Video help to help you)

N
nimda13, 2018-10-25
@nimda13

It is convenient to work with database transactions in Yii. They turn into one another and it is not necessary to make where to open and close.
Also built-in scaling support. Embedded CodeCeption.
Well, he's faster.
In Laravel, there is a convenient Laravel mix for working with the front.
For me, if a server application is being written, then Yii is preferable.
My experience with them:
On Yii I wrote about 2 years on the High-load project the server part of the kernel.
On Laravel last year server + front. No longer high-load.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question