What is Lumen In Laravel and Its Use

What is Lumen? If you need to answer this question with one statement then you can say “Lumen is fast micro-framework by Laravel and used to develop high speed micro-services and API development.

Introduction

Lumen is majorly used to develop APIs and web services. Lumen is Laravel’s micro framework that was created by the Laravel’s creator i.e. Taylor Otwell. You can check all the releases of here Release Notes – Lumen – PHP Micro-Framework By Laravel.

Lumen is a micro framework which means it is fast and small version of web framework. PHP has other two framework named slim and silex.

Lumen and its benchmark
Lumen Benchmark

Install Lumen

Lumen use composer to install all its dependencies. So, before you start you have to install composer first. If you don’t no how to install composer follow the article here Install Composer on Linux and Windows in 3 Steps.

Some server requirements to install Lumen are,

  • PHP 7.3 (for the newer Lumen version)
  • PDO PHP Extension
  • OpenSSL PHP Extension
  • Mbstring PHP Extension

Note: To enable above extension we use php.ini file and search for these. To enable extension, just remove semicolon(;) from the start.

You can install Lumen, like laravel by pulling it from global.

After the complete installation, if you use a local server or any built-in PHP server then run the below command,

How to Run Laravel Project on Localhost

Some Major Points About Lumen

  1. Lumen is the microframework for web applications that are used to create microservices or APIs.
  2. It is a smaller and lighter part of Laravel.
  3. On the integration part, it supports third-party integrations like any payment gateway or security packages like JWT.
  4. It handles a number of requests more than Laravel.
  5. Also, response time is very less compared to Laravel.
  6. Lumen is majorly used for its speed.

Conclusion

Lumen is a trimmed version of laravel to increase its speed. It does not create problems with the major tasks like views, sessions, routing, etc. So here we learn about Lumen, its major use, and its installation on our local server.

Hope you will understand, if you have any questions let me know.

Also Read:

Happy Coding..!

Was this article helpful?
YesNo
My name is Bikash Kr. Panda. I own and operate PHPCODER.TECH. I am a web Programmer by profession and working on more than 50 projects to date. Currently I am working on the web-based project and all the CMS and frameworks which are based on PHP.
Posts created 188

Leave a Reply

Your email address will not be published.

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top