Getting start with lumen framework tutorial for beginners
Lumen is a micro framework of Laravel. Lumen is especially built for develop APIs. So it is the best choice for build Laravel based micro services and APIs in a reliable way. And as a further description, Lumen has reduced some commands and structures from Laravel in order to make it lightweight. However it has the capable of doing the process of developing APIs as our need. So lets get start This is lumen framework tutorial for beginners.
Lumen is also easy to create a project like Laravel. We have simple steps to follow.
You have to install composer first. Go to following link to download and install composer
And then you need to create a folder where you need to create your project. For example C:/Projects/Lumen new project
Go to your created project directory and open that folder in CMD (in navigation panel just type cmd and press enter).
In order to create new project enter following line and press enter
composer create-project --prefer-dist laravel/lumen myblog
So it will generate all the required files and folders relevant to your project. Now in order to run your project type following line and execute.
php artisan serve
If you want to use different host and IP with public folder itself to run your project please see how it done from this post
Extra Note – If you are using a localhost server (for example :- Xampp or Wampp) when you create directory create the project folder in relevant directory (ex:- www folder). So when you want to run your project you can run Lumen project as usual as other projects.
Thank you!! this is a one Lumen framework tutorial for beginners. If you have any questions please comment below.