Differences and Similarities Between Lumen and Laravel

后端 未结 6 440
抹茶落季
抹茶落季 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:58

    Why Lumen ?

    Lumen is the perfect solution for building Laravel based micro-services and blazing fast APIs. In fact, it's one of the fastest micro-frameworks available. It has never been easier to write stunningly fast services to support your Laravel applications. Doc

    Lumen is a framework to build APIs, which will essentially serve JSON responses for your requests. That's it.

    These kinds of applications are known as web services in general.

    As of Lumen 5.2 update, it doesn't support laravel views, sessions etc... for that you will have to upgrade to full laravel framework.

    Some components of the Laravel framework is swapped with other packages in favour of performance. check them here

    Example scenarios where we can consider Lumen

    • You might want to open up some features of an application to other developers via API
    • Your application needs to support both web and mobile application, then it will be perfect to store the data in a DB wrapped in Lumen API.
    • When you consider scalability as an important point, you may need lumen

提交回复
热议问题