PHPackages                             geoffselby/laravel-jwt-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. [HTTP &amp; Networking](/categories/http)
4. /
5. geoffselby/laravel-jwt-boilerplate

ActiveProject[HTTP &amp; Networking](/categories/http)

geoffselby/laravel-jwt-boilerplate
==================================

Rapidly build an API with Laravel and JWT authentication.

v1.0.0(6y ago)18212[20 PRs](https://github.com/GeoffSelby/laravel-jwt-boilerplate/pulls)MITPHPPHP ^7.1.3

Since Jul 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GeoffSelby/laravel-jwt-boilerplate)[ Packagist](https://packagist.org/packages/geoffselby/laravel-jwt-boilerplate)[ RSS](/packages/geoffselby-laravel-jwt-boilerplate/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (11)Versions (25)Used By (0)

Laravel JWT Boilerplate
-----------------------

[](#laravel-jwt-boilerplate)

[![Build Status](https://camo.githubusercontent.com/b2b6c15388319a5864d629cbfb4043aa73b06f143ceb96287ced39a40aa35e9a/68747470733a2f2f7472617669732d63692e636f6d2f47656f666653656c62792f6c61726176656c2d6a77742d626f696c6572706c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/GeoffSelby/laravel-jwt-boilerplate)

This boilerplate is meant to be used to rapidly build an API with Laravel using JWT authentication.

Features inlude:

- Full authentication suite with JWT-Auth - [tymondesigns/jwt-auth](https://github.com/tymondesigns/jwt-auth)
- CORS handling with Laravel-CORS - [barryvdh/laravel-cors](http://github.com/barryvdh/laravel-cors)
- Email verification handling done for you 🙌

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

[](#installation)

First, run `composer create-project geoffselby/laravel-jwt-boilerplate`

Then, have a 🍺 and wait for composer to do it's thing.

Once you have installed the boilerplate with Composer, set up your database in `.env` and run the `php artisan migrate` command to migrate the database. The JWT secret is generated automatically when you install the boilerplate with Composer.

Usage
-----

[](#usage)

### API Development

[](#api-development)

Develop your API the same way you would normally develop a Laravel powered API with JWT authentication implemented out of the box.

### Frontend Implementation

[](#frontend-implementation)

This boilerplate is designed so that you can use whatever frontend implementation you choose *(i.e. Create React App or Vue CLI)* as long as you implement authentication correctly.

Create React App example: **Coming Soon**

Enabling CORS
-------------

[](#enabling-cors)

By default, CORS is enabled for all routes since it is assumed you are using a seperate front end.

Check the [Laravel-CORS](https://github.com/barryvdh/laravel-cors) docs for more info.

Contributing
------------

[](#contributing)

If you would like to contribute to this project, submit a PR for review. A more detailed contribution guide is in the works.

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~15 days

Total

4

Last Release

2438d ago

Major Versions

v0.0.3 → v1.0.02019-09-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/86513d9a9475578032264ee9620d33234e436271109dd2bdc7e3cb788833c2a0?d=identicon)[geoffselby](/maintainers/geoffselby)

---

Top Contributors

[![GeoffSelby](https://avatars.githubusercontent.com/u/6684498?v=4)](https://github.com/GeoffSelby "GeoffSelby (6 commits)")

---

Tags

jwtapilaravelrestauthboilerplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/geoffselby-laravel-jwt-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/geoffselby-laravel-jwt-boilerplate/health.svg)](https://phpackages.com/packages/geoffselby-laravel-jwt-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)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59152.2k](/packages/lomkit-laravel-rest-api)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dreamfactory/df-core

DreamFactory(tm) Core Components

1651.7k20](/packages/dreamfactory-df-core)[xtend-packages/rest-presenter

REST API Presenter &amp; Generator for Laravel

771.5k](/packages/xtend-packages-rest-presenter)

PHPackages © 2026

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