Lumen — Microservice example (p1)

Image for post
Image for post

Quick, easy installation

composer global require "laravel/lumen-installer"
lumen new {project_name}

Via Composer Create-Project

composer create-project --prefer-dist laravel/lumen {project_name}
$router->get('/key', function() {
return str_random(32);
});
php artisan serve

Project directory structure

Image for post
Image for post
Lumen directory structure

Written by

Be Curious!| ☕️+✍🏼=❤️ | buihuycuong.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store