A
A
Arman2015-10-27 12:36:35
Laravel
Arman, 2015-10-27 12:36:35

Should Lumen be used for large websites and should it be left out?

Good day. I decided to try Lumen after Laravel 5, but the more I read about it, the more I come to the conclusion that it is more suitable for APIs and small applications for which speed is critical. It turns out that not all packages support Lumen from Laravel 5 (temporarily?). What attracts Lumen is that you have to implement most of it yourself, when, like in Laravel 5/ Yii 2, they seem to impose their own version of the work, I'm not saying that this is bad, but there are dubious places and you don't know where to put yourself - delete everything and rewrite these places or crutch to the fullest. laravel 5 implements authorization etc. but I don’t think it’s really difficult to do all this, i.e. I don't see it as a big plus.
And is it worth it to follow the path that the authors of frameworks give as an example? Let's say I like Zend's version more, Phalcon (?) when the view is automatically selected by the controller, you do not need to register each time and at the same time you can select another one at any time. I like name-routes in Laravel 5, but for some reason they are only used for links, although they can be very useful in other parts. I'm all about the fact that if you start to go to the side, then it will be more difficult for others to figure out the code, and if you go the same way, somewhere with terrible crutches, it will most likely be easier to understand for other developers familiar with this or that framework.
Thank you

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2015-10-27
@Arik

you have to dance from the task. if you write only for yourself, then in general I don’t care what and how to use it.
The beauty of frameworks is that they solve typical problems and set a certain standard, which in turn translates into simplification of code support/development, including by third-party people.

V
Vyacheslav Plisko, 2015-10-27
@AmdY

IMHO, Lumen is the exasperation of the offended Taylor after the performance test, he took and removed the part of laravel altogether or in ifa. My experience with similar frameworks suggests that sooner or later you will have to drag the rest of the functionality, so it’s better to have a ready-made framework right away, thank God with x64 and gigs of RAM you can already bother with micro-optimization.
So you wrote about authorization, it’s kind of simple, but in laravel itself there was a critical vulnerability in this place, there is a lot of hashing, salting, recovery, cookie encryption, etc. In practice, all “simple” things turn into a set of rakes for which it was very painful to walk afterwards.

A
Alexey Ostin, 2015-10-27
@nitso

Lumen is a micro-framework based on Laravel (although, in fact, all they have in common is the same author :) ). This is when you have a lot of Laravel, but you want a similar environment. It has a different scope. The fact that you need to implement most of the solutions yourself is a feature of the framework. Like Symfony and Silex.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question