Lumen Micro Framework banner

Lumen Micro Framework

February 27, 2018By Rakshit Patel

Today i will talk about Lumen Micro Framework, why use Lumen Micro Framework, what are the benefits of using Lumen Micro Framework and much more. Lumen is a “micro-framework” built on top of Laravel’s components which is design to develop Micro Services.

LUMEN MICRO FRAMEWORK

The Origine: Lumen is an open-source PHP based micro-framework created by Taylor Otwell in 2015. Lumen is designed for building light-weight fast micro-services and APIs. And it opts for maximum speed rather than flexibility in the bootstrap process.

The PHP micro-framework was born out of the need to have light Laravel installations that could be faster than existing PHP micro-frameworks such as Slim Development and Silex.

WHERE DID THE NAME LUMEN COMES?

Lumen is a play on the “Illuminate” components that Laravel utilizes. The Illuminate components are the individual pieces of the Laravel framework such as a database, cache, queue, etc. So, Lumen sounds nice as a name. It’s only two syllables, instead of three like Laravel. That may sound crazy, but I think about that kind of thing and the mental images that are conjured up when you say the word. Of course, it also continues the tradition of “light” based names.

WHY LUMEN MICRO FRAMEWORK?

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.

Don’t sacrifice power for speed. Use the Laravel features you love like Eloquent, caching, queues, validation, routing, middleware, and the powerful lumen is a “micro-framework” built on top of Laravel’s components which is design to develop Micro Services.

Lumen-Micro-Framework

LARAVEL VS LUMEN

  • Laravel has config: cache and route: cache while Lumen does not. So it makes sense to include this in the test using Redis.
  • Lumen should have facades and eloquent enabled
  • Laravel now has web routes with sessions and API stateless routes. So we need to include both in the tests when comparing against Lumen (which is only stateless).

CONCLUSION

No one can give a clear idea “You will understand it once you implement it or see it.” but as per me, Lumen utilizes the Illuminate components that power the Laravel framework. One amazing thing about the way Lumen was built is the fact that you can painlessly upgrade right into Laravel.

Rakshit Patel

Author ImageI am the Founder of Crest Infotech With over 15 years’ experience in web design, web development, mobile apps development and content marketing. I ensure that we deliver quality website to you which is optimized to improve your business, sales and profits. We create websites that rank at the top of Google and can be easily updated by you.

CATEGORIES