This was created to make working with Lumen a bit faster, especially when it comes to deal with thousands of microservices.
This is still a work in progress. Feel free to let me know about any problems.
git clone https://github.com/WRonX/Lumen-5.5-boilerplate.git
cd Lumen-5.5-boilerplate
nano .env.example
cp .env.example .env
composer install
(well, you know, what I mean)
- Lumen (duh...)
- Roave Security Advisories
- Laravel IDE Helper (
dev
only) - Laravel Debugbar (
dev
only) - Lumen Generator (
dev
only)
Check them out, if you don't know, what they do.
There's simplified version of Laravel's ThrottlesLogins
trait (with an example in controller), custom route helper function for unit tests and a JSON request middleware. You probably will see it once you check it out. Feel free not to use it at all.
- If you don't have DB connection credentials configured, IDE helper will report an error when trying to run
php artisan ide-helper:models
(it's added to post-update scripts incomposer.json
). - On production environment, post-install script will report errors, because
IDE helper
will not be present. This is probably going to be fixed with custom script to avoid problems with automated deploy. - You may need to enable facades (uncomment
$app->withFacades();
inbootstrap/app.php
)