DEV Community

Discussion on: Why is Laravel much popular in USA than Symfony ?

Collapse
 
antjanus profile image
Antonin J. (they/them)

I've used both and I largely prefer Laravel. There are a few main reasons for that:

  1. Laravel is MUCH easier to bootstrap. There are no xml files, no dependency injection crap.
  2. Laravel is easier to learn. You can pretty much bypass the MVC pattern if you want to and dig as deep as you need to.
  3. Tons of magic. Because of Laravel's heavy use of facades and static methods, it requires less amount of boilerplate
  4. Community is amazing and constantly evolving
  5. There are lots of integrations and full-stack solutions. Laravel integrates really well with Vue, giving a PHP developer an "in" into JS.

There are more reasons but those are my main ones. I like Symfony as well and I think it's great for large enterprise applications. I've use Symfony in that context and it works well; however, trying to wire in a new bundle or library takes effort to learn the xml and bootstrapping system while with Laravel, I've noticed I didn't have to really do that.

Collapse
 
vasilvestre profile image
Valentin Silvestre

These points are now invalid because of many evolves. The new Symfony have easier dependency injection with annotation or type hint!
It's true that Laravel is much easier.
Magic is something I don't like, newcomers don't get how FW work when there's too many magic.
The community is the same as the Symfony one I think, their Slack is active, the github have so many pull request, etc...
It's kinda same with product like API platform, both Sf and Laravel have blade/twig.. Maybe your own experience so

You should try Symfony 4 with Flex, it comes with many handsome features, auto config, powerful type-hint, internationalization of url and more.. Even add bundle is easy now. That's what make Symfony better in my opinion, they are making big evolve that allow you to make a little or big project.

But in fact, Symfony need a lot of time to learn how to use it.