neoson / laravel-api-min-boilerplate
A simple laravel api boilerplate
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.1.3
- dingo/api: 2.0.0-alpha2
- dirape/token: ^2.1
- doctrine/dbal: ^2.8
- fideloper/proxy: ^4.0
- guzzlehttp/guzzle: ~6.0
- itsgoingd/clockwork: ^3.0
- laravel/framework: 5.7.*
- laravel/tinker: ^1.0
- owen-it/laravel-auditing: ^8.0
- tylercd100/lern: ^4.5
- tymon/jwt-auth: 1.0.0-rc.3
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.5
- beyondcode/laravel-dump-server: ^1.0
- filp/whoops: ^2.0
- fzaninotto/faker: ^1.4
- mockery/mockery: ^1.0
- nunomaduro/collision: ^2.0
- phpunit/phpunit: ^7.0
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-10-29 05:34:26 UTC
README
A simple laravel 5.7 api boilerplate which include very basic function to get started.
Features
- Api token generator (email verfication, password recovery)
- clockwork debug
- laravel auditing
- error logging to db
- jwt authentication
- laravel ide helper
Installation
run the following command from terminal
composer create-project --prefer-dist neoson/laravel-api-min-boilerplate myProject
run migration
php artisan migrate
generate jwt secret
php artisan jwt:generate
rename .env.example
to .env
and setup your configuration
run the application
php artisan serve
Usage
Important Diretories
api route : route/api.php
controller: app/Http/Controllers/V1
model : app/Model
This boilerplate provide function to send email
//run this queue worker
php artisan queue:work
//email template directories
resources/views/emails
Api
POST api/auth/register //register an account and send verification email POST api/auth/login //perform login and get jwt token GET api/auth/email/verify //verify email for new account POST api/auth/recovery //send a recovery email GET api/auth/reset //reset password after verify recovery email POST api/auth/refresh //refresh the jwt token //the following api require jwt token //you can include in header(Authorization: Bearer 'token') //or as request parameters(token) POST api/auth/password/change //for changing password POST api/auth/logout //logout POST api/auth/me //get current authencated user
Built With
License
This project is licensed under the MIT License - LICENSE
Feedback
Your feedback and contribution are very welcome, hope you enjoy it.