uninjuredaccurate's avatar

To Lumen or not to Lumen?

Hi,

I recently stumbled over Lumen and I didn't quite get why and when to use Lumen and when to use Laravel? Of course, Lumen is more lightweight and can serve more requests per second, but still, what are the advantages? Is there anything I am not able to use (in a default installation) with Lumen?

  • When should I use Lumen, when Laravel?
  • Key differences between those two?

Thanks in advance! Florian

0 likes
4 replies
emirk's avatar

Mostly you use Lumen for APIs

Lumen is more lightweight because you don't get all features which Laravel gives, like all artisan commands (I am talking about default features), eloquent, facades and so on.

uninjuredaccurate's avatar

Okay. So I should just stick with Laravel as long as I'm not developing an API-only site?

1 like
emirk's avatar

Lumen represents a shift on slimming Lumen to focus solely on serving stateless, JSON APIs. As such, sessions and views are no longer included with the framework. If you need access to these features, you should use the full Laravel framework.

2 likes

Please or to participate in this conversation.