composer create-project --prefer-dist laravel/lumen blog
Here is what the above code is Doing:
1. We’re using the composer command to create a new project.
2. We’re using the –prefer-dist flag to tell Composer to install the latest stable version of Lumen.
3. We’re passing the laravel/lumen package name to the create-project command.
4. We’re passing the name of the directory we want to install Lumen into.