Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to switch Laravel to Symfony?

I have the same question about my current project.


  • Project type: Something like shopping cart SDK.
  • Models: 30+ (with extensions)
  • Extensions: 15+
  • Tables: 47
  • Relations: every model have 3+ relations
  • The most performance demanding part processing: 300ms

On start, I have 10 models with relations, that's why I choose Laravel as Framework, and I do not think about growing.

Now, I have 40 models with a lot of extensions and Laravel work fine. My project is growing fast. Now It's a big SDK with a lot of tables, relations, and extensions.

I need advice from experienced developers.

Do I need to switch Laravel to Symfony, to reduce future problems with performance?

I would be glad if you can advise me on this.


P.S.: I understand complexity with migration from Laravel to Symfony,

like image 244
Mgorunuch Avatar asked May 20 '17 07:05

Mgorunuch


People also ask

Should I use Symfony or Laravel?

Laravel is known for its simple and fast coding approach and works great for building effective web apps in PHP. Symfony is a web app PHP framework that has a large community and a wide number of open-source projects. It also relies on MVC pattern and just like Laravel can be used on various computing platforms.

Does Laravel use Symfony?

Symfony components can serve as great code examples and they are used in a lot of open source projects such as Drupal, phpBB, and Codeception. In fact, Laravel itself uses no less than 14 Symfony components.

Is Symfony faster than Laravel?

Laravel vs Symfony: Speed Compared to Laravel, Symfony is slower when it comes to complex web projects. It promotes adaptability as well as peak performance. It's simple to extend, and PHP Symfony comes with various alternatives.

Is Symfony same as Laravel?

At a glance, there's one main difference between Symfony and Laravel which is that Symfony is both an Application Framework and a set of reusable components, while Laravel is simply a Framework. In fact, Laravel uses quite a few of Symfony's components.


1 Answers

Performance-wise there is no big difference between frameworks. If you are coding right - they are all just the same.

But the problem is in this part "if you are coding right".

You must always think about design, about responsibilities, about service layers, and to be consistent with your approaches.

And for this Symfony is much better. It's just a more convenient framework to go with SOLID. And it makes you think in a right direction.

like image 99
Dmitry Malyshenko Avatar answered Oct 22 '22 16:10

Dmitry Malyshenko