wisoot / jwt-guard by wisoot

Laravel Guard Driver using JSON Web Token (JWT)
701
6
4
Package Data
Maintainer Username: wisoot
Package Create Date: 2016-02-15
Package Last Update: 2017-07-01
Language: PHP
License: MIT
Last Refreshed: 2024-04-24 03:02:16
Package Statistics
Total Downloads: 701
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 4
Total Forks: 3
Total Open Issues: 0

Jwt Guard

Author Latest Version on Packagist Software License Quality Score Total Downloads

Jwt Guard is alternative Laravel 5.2 Guard Driver which is implemented using JSON Web Token (JWT)

The MIT License (MIT). Please see License File for more information.

Install

To install this package you will need:

  • Laravel 5.2
  • PHP 5.6+

Via Composer

$ composer require wisoot/jwt-guard

Add the Service Provider

Open config/app.php and, to your providers array at the bottom, add:

WWON\JwtGuard\Providers\JwtGuardServiceProvider::class

Publish config file and database migration

php artisan vendor:publish --provider="WWON\JwtGuard\Providers\JwtGuardServiceProvider"

Update jwt.php config to suit your project, run the migration, then you are good to go.

Usage

In config/auth.php config file you have access to jwt driver.