A template made from Lumen 5.7.*, authenticated with laravel/passport
- after cloning/downloding this repo, first open to terminal then change directory to a project directory.
- sample, in linux,
cd lumen-boilerplate
. - run
composer install
to install project dependencies. - copy
.env.example
to.env
. (dont just rename it), for team reference purpose. - prepare you environment in
.env
- lumen has no
php artisan key:generate
, so you can google it to add value first. - run
composer fresh
, this will migrate and seed fake data to your database, and install laravel passport. see composer.jsonscripts
index. - if you not familiar with laravel/passport, you must see this first.
- how to login? see laravel/passport
- to generate documentation run
php artisan apidoc:generate
, then visithttp://lumen-boilerplate.test/docs
on browser.
- you can view integration here
- go to project directory.
- run
vendor/bin/phpunit
, if you running this via homestead, you can run this throughssh
viaphpunit
in current project directory. - run
composer coverage
to see code coverage viahtml
. - run
composer coverage-txt
to see code coverage viaterminal
.
- laravel/lumen-framework:5.7.* - The stunningly fast micro-framework by Laravel
- laravel/passport - OAuth2 server and API authentication, fix installed by dusterio/lumen-passport
- andersao/l5-repository - Repositories to abstract the database layer
- thephpleague/fractal - Output complex, flexible, AJAX/RESTful data structures, extended by andersao/l5-repository
- spatie/laravel-permission - Associate users with roles and permissions
- barryvdh/laravel-cors - Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
- mpociot/laravel-apidoc-generator - Laravel API Documentation Generator
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details