Differences and Similarities Between Lumen and Laravel

后端 未结 6 458
抹茶落季
抹茶落季 2020-12-07 09:01

I read the documentation and it seems Lumen is Laravel with less features. I must be missing something. I am looking for a comparison table of the components and features of

6条回答
  •  春和景丽
    2020-12-07 09:50

    Lumen is not designed to replace Laravel, rather, it is a more specialized (and stripped-down) framework designed for micro-services and APIs. It took away unneeded features for an API such as HTTP sessions and cookies, and also limited the number of configuration options. Out-of-the-box, Lumen sacrified the flexibility of Laravel for speed.

    However, you can add Laravel components to Lumen to extend it, so it can be used for more than just micro-services and API. However, if your goal is to extend Lumen to become a website, you might as well use Laravel instead.

    They also have different use cases. Lumen and Laravel are meant to work together. For APIs and services are frequently get called, use Lumen. For user-facing applications, use Laravel.


    This answer is taken from a blog post I wrote that explains the difference between Lumen and Laravel.

提交回复
热议问题