Answer the question
In order to leave comments, you need to log in
What are the advantages of laravel5 over symfony2?
I must say right away that the question is not asked for the sake of a holivar. I have been working with symfony2 for more than a year, I decided to try out laravel in order to broaden my horizons. In this connection, the opinion of people who have worked with both frameworks is of interest - what are the advantages of laravel over symfony. I will make a reservation right away - the arguments "simplicity and clarity" are not arguments for me - the symphony has been studied up and down, therefore it does not seem difficult. Yes, the entry threshold is high, but after studying everything is logical, simple and understandable. I would like to understand why it is worth trying laravel, what it can give.
Answer the question
In order to leave comments, you need to log in
If you feel like a fish in water in Symfony, then Laravel will not give you anything new - it is built on Symfony components, the architectural principles are the same. Only in Laravel, all this is hidden behind convenient facades.
On the other hand, if you understand Symfony, and generally have decent development experience and a head on your shoulders, then you will spend more time reading the answers here than learning Laravel.
These are tools for different tasks. It cannot be said that one of them is better than the other.
With Laravel it is easier in startups: to quickly code and release.
Symfony is a priority where code quality is important, but because of this, the product will be more expensive and will take longer to develop.
Personally, in my case:
DI:
+ it’s more convenient to inject services
- you can’t inject DB variables
:
+ it’s more convenient to work with Eloquent than with Doctrine
+ convenient QueryBuilder
Console:
+ generators of events, models, migrations, etc.
+ tinker
Validation:
+ a lot of built-in validation rules
+ validation in controllers via FormRequest
Others:
+ multiple authorization out of the box
+ RBAC out of the box
+ more flexible routing/middleware
+ helpers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question