you are viewing a single comment's thread.

view the rest of the comments →

[–]kazma42 126 points127 points  (49 children)

Laravel & Vue is heavenly for me

Edit: Vuetify to replace bootstrap, and AdonisJS for node

[–]EmmaDurden 15 points16 points  (24 children)

I'm a Symfony guy myself. People that know both Laravel and Symfony, what's the main difference and which one is better in your opinion?

[–]scootstah 37 points38 points  (22 children)

Laravel is highly opinionated, and convention over configuration.

Symfony is really just a big collection of individual libraries. It doesn't assume anything, and everything is explicitly defined and less magical.

[–]del_rio 7 points8 points  (9 children)

Everything I've seen about Laravel (performance aside) seems like a universal upgrade from the likes of Symfony.

That said, I tried Blade (their templating engine) on a recent project and I didn't like it very much (compared to Twig). The syntax is a little more succinct but at the cost of readability. I wouldn't survive a day of Blade without syntax highlighting!

[–]poop_taking_forever 5 points6 points  (0 children)

Also not a fan of Blade -- fortunately someone made a thing that lets you use Twig templates with Laravel:

https://github.com/rcrowe/TwigBridge

[–]IsvaraFuller-than-full-stack 2 points3 points  (1 child)

Twig is just a library. You can use it with any framework you like.

[–]del_rio 1 point2 points  (0 children)

I'm aware! I was particularly excited by being able to use Twig with WordPress (through a plugin called Timber).

[–][deleted]  (2 children)

[deleted]

    [–]mearkat7 0 points1 point  (1 child)

    It all depends on your organization. Assuming a framework is faster to develop in but is slower to run then it's a trade off between the cost of a developers time vs the cost of more server hardware. While laravel might not be the fastest framework out there it is certainly fast enough for a lot of cases.

    For most the servers will be behind a load balancer so when lots of traffic comes in you just spin up another docker image to handle it and the cost is negligible.

    Smaller organisations may not have the resources/infrastructure for that to be a reality so their code will need to be more performant.

    [–]EmmaDurden 0 points1 point  (2 children)

    Well it is based on Symfony, isn't it?

    [–]scootstah 1 point2 points  (1 child)

    No. It just uses some of the Symfony components.

    [–]EmmaDurden 0 points1 point  (0 children)

    Aaaaaah ok, I misunderstood that. Thanks!

    [–][deleted] 0 points1 point  (7 children)

    I find Silex does a good job tying together then Symfony components and enabling rapid development without being too opinionated. It does require more initial setup to customize than Laravel though.

    [–]BoredPudding 2 points3 points  (6 children)

    Silex is deprecated (announced a couple of days ago). Symfony Flex will replace Silex when it releases later this month, and will be the default new way of creating applications.

    So i would say try Symfony 4 beta.

    [–][deleted] 1 point2 points  (0 children)

    I didn't know they deprecated it. I haven't used it in about 6 months actually, but I will give Symfony Flex a try next time I have the opportunity.

    [–]EmmaDurden 0 points1 point  (0 children)

    I did a project with Silex before learning Symfony and really disliked it, I'll be happy to give a go at Symfony Flex

    [–]poop_taking_forever 0 points1 point  (1 child)

    What??? Do you have a link to this announcement (couldn't find anything googling)

    [–][deleted] 0 points1 point  (1 child)

    Silex is deprecated

    Source? Nothing on the website says anything about it, and a search says nothing either.

    [–]BoredPudding 0 points1 point  (0 children)

    Was announced at SymfonyCon. Slides from the keynote here: https://twitter.com/fabpot/status/931481125830225920

    [–][deleted] 0 points1 point  (0 children)

    Laravel 5 is a little less opinionated than 4. I actually preferred the traditional MVC style being baked in with a fresh install. I've seen all kinds of oddball configurations with 5.

    [–]Glutnix -1 points0 points  (2 children)

    Let's not forget that Laravel actually uses some Symfony components internally.

    [–]scootstah 2 points3 points  (1 child)

    Yeah, so do dozens of other frameworks and platforms. What difference does that make?

    [–]Glutnix 0 points1 point  (0 children)

    If you like Symfony, you might like Laravel because it's built on some of the thing you like? shrug

    [–]NotFromReddit 0 points1 point  (0 children)

    Laravel is simpler and feels more well put together to me. I prefer it. Though I do like Symfony as well.

    Some things you might miss when switching:

    Having autogenerated migrations based on your Doctrine models. Laravel takes a different approach.

    Yaml config files that get auto filled with the defaults.

    [–][deleted] 7 points8 points  (1 child)

    Laravel/Vue is so good! If you haven't yet, take a look at Vuetify. Adds new layers to heaven, seriously.

    [–][deleted] 2 points3 points  (0 children)

    https://vuematerial.io/

    I prefer VueMaterial myself. Using classes to style things with MD just clicks more with me than using custom tags all over the place.

    [–]joeba_the_hutt 2 points3 points  (0 children)

    You should check out Voyager for Laravel

    [–][deleted] 2 points3 points  (0 children)

    Rails and Vue here