# Via Lumen Installer
composer global require laravel/lumen-installer
lumen new blog
# Via Composer Create-Project
composer create-project --prefer-dist laravel/lumen blog
<?php
/**
* Reimagine what you expect...
*/
$app->get('/', function() {
return ['version' => '5.3']
});
/**
* From your micro-framework...
*/
$app->post('framework/{id}', function($framework) {
$this->dispatch(new Energy($framework));
});
$app->get('api/users/{id}', function($id) {
return User::find($id);
});