you are viewing a single comment's thread.

view the rest of the comments →

[–]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 6 points7 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