PHPackages                             kennethtomagan/laravel-6-api-boilerplate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. kennethtomagan/laravel-6-api-boilerplate

ActiveProject[Authentication &amp; Authorization](/categories/authentication)

kennethtomagan/laravel-6-api-boilerplate
========================================

A Laravel 6 API Boilerplate to create a ready-to-use REST API. User Authentication using JWT.

6.0(6y ago)4922216MITPHPPHP ^7.2

Since Oct 3Pushed 6y ago3 watchersCompare

[ Source](https://github.com/kennethtomagan/laravel-6-api-boilerplate)[ Packagist](https://packagist.org/packages/kennethtomagan/laravel-6-api-boilerplate)[ RSS](/packages/kennethtomagan-laravel-6-api-boilerplate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (10)Versions (5)Used By (0)

laravel-api-boilerplate
=======================

[](#laravel-api-boilerplate)

[![Packagist](https://camo.githubusercontent.com/319003cd73cb0cb0321ed891645cd04dea9e04ec8c54791abd91e0952f07ae1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b656e6e657468746f6d6167616e2f6c61726176656c2d362d6170692d626f696c6572706c6174652e737667)](https://packagist.org/packages/kennethtomagan/laravel-6-api-boilerplate)[![Packagist](https://camo.githubusercontent.com/6c4bd860734c73d921c0e461f1aab4e7f981070fbb958af610f6bf2399a8b9ab/68747470733a2f2f706f7365722e707567782e6f72672f6b656e6e657468746f6d6167616e2f6c61726176656c2d362d6170692d626f696c6572706c6174652f642f746f74616c2e737667)](https://packagist.org/packages/kennethtomagan/laravel-6-api-boilerplate)[![Packagist](https://camo.githubusercontent.com/20c226e543ae42df5ddf5618a811683d599a9d82e2e63bfa3f168d767f7942ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b656e6e657468746f6d6167616e2f6c61726176656c2d362d6170692d626f696c6572706c6174652e737667)](https://packagist.org/packages/kennethtomagan/laravel-6-api-boilerplate)

This is a boilerplate for writing RESTful API projects using Laravel, a "Starter Kit" you can use to build your API in seconds.

##### Packages:

[](#packages)

- JWT-Auth - [tymondesigns/jwt-auth](https://github.com/tymondesigns/jwt-auth)
- Laravel-CORS [barryvdh/laravel-cors](http://github.com/barryvdh/laravel-cors)

##### Require:

[](#require)

- PHP: ^7.2

Features
--------

[](#features)

- JWT Authentication
- Basic Features: Registration, Login, Update Profile &amp; Password
- JSON API Format response.
- Unit/Feature Testing.
- Frontend Vue.js starter kit ready example (  ).

Installation
------------

[](#installation)

`composer create-project kennethtomagan/laravel-6-api-boilerplate myNewProject`;

#### Install Dependencies

[](#install-dependencies)

```
$ composer install

```

#### Configure the Environment

[](#configure-the-environment)

Create `.env` file:

```
$ cat .env.example > .env

```

Run `php artisan key:generate` and `php artisan jwt:secret`

#### Migrate and Seed the Database

[](#migrate-and-seed-the-database)

```
$ php artisan migrate:fresh --seed

```

Route API Endpoint
------------------

[](#route-api-endpoint)

- Postman API Documentation Starter Kit

VerbURIControllerNotesPOST`http://localhost:8000/api/auth/login`AuthControllerto do the login and get your access tokenPOST`http://localhost:8000/api/auth/register`RegisterControllerto create a new user into your applicationPOST`http://localhost:8000/api/auth/recovery`ForgotPasswordControllerto recover your credentials;POST`http://localhost:8000/api/auth/reset`ResetPasswordControllerto reset your password after the recovery (setup your mail credentials in `.env` file to avoid error);POST`http://localhost:8000/api/auth/logout`LogoutControllerto log out the user by invalidating the passed token;GET`http://localhost:8000/api/profile`ProfileControllerto get current user dataPUT`http://localhost:8000/api/profile`ProfileControllerto update current user dataPUT`http://localhost:8000/api/profile/password`ProfileControllerto update current user password

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Total

3

Last Release

2284d ago

Major Versions

1.0 → 2.02020-02-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/95029690a70e34e94d8df31c3a1398ea6f04a19b170381f84a32b3004ea3d2d3?d=identicon)[kennethtomagan](/maintainers/kennethtomagan)

---

Top Contributors

[![kennethtomagan](https://avatars.githubusercontent.com/u/19635516?v=4)](https://github.com/kennethtomagan "kennethtomagan (74 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![emanmjr](https://avatars.githubusercontent.com/u/30521931?v=4)](https://github.com/emanmjr "emanmjr (2 commits)")[![mgkimsal](https://avatars.githubusercontent.com/u/75154?v=4)](https://github.com/mgkimsal "mgkimsal (2 commits)")[![jericopulvera](https://avatars.githubusercontent.com/u/23246308?v=4)](https://github.com/jericopulvera "jericopulvera (1 commits)")[![kennethhalcyon](https://avatars.githubusercontent.com/u/48195341?v=4)](https://github.com/kennethhalcyon "kennethhalcyon (1 commits)")

---

Tags

apiboilerplatejwtlaravellaravel-api-boilerplatelaravel6jwtapilaravelboilerplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kennethtomagan-laravel-6-api-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/kennethtomagan-laravel-6-api-boilerplate/health.svg)](https://phpackages.com/packages/kennethtomagan-laravel-6-api-boilerplate)
```

###  Alternatives

[francescomalatesta/laravel-api-boilerplate-jwt

An API Boilerplate to create a ready-to-use REST API in seconds.

1.2k7.5k](/packages/francescomalatesta-laravel-api-boilerplate-jwt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
