PHPackages                             fuatogur/laravel-jwt - 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. fuatogur/laravel-jwt

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

fuatogur/laravel-jwt
====================

Simple JWT Authentication for Laravel

v1.0.0(2y ago)14MITPHPPHP ^8.1

Since Jun 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/fuatogur/laravel-jwt)[ Packagist](https://packagist.org/packages/fuatogur/laravel-jwt)[ Docs](https://github.com/fuatogur/laravel-jwt)[ RSS](/packages/fuatogur-laravel-jwt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

LARAVEL JWT
===========

[](#laravel-jwt)

JWT Authentication for Laravel

Why
---

[](#why)

There are good laravel jwt packages but i saw them as complex and created this package.

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

[](#installation)

1. Firstly install the package via composer

```
composer require fuatogur/laravel-jwt

```

2. Set your auth guard as `jwt`

Usage
-----

[](#usage)

1. Add getJWTData method to your User class to specify which data should be included in jwt token

```
class User extends Model
{
    public function getJWTData()
    {
        return [
            'id' => $this->id,
            'email' => $this->email
        ]
    }
}
```

2. Use `Auth::token()` to get the token for the user

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a16635f0046dab0f853e6b9e1cd997c4ae345a461c636d2c0ec54130edefbaa?d=identicon)[fuatogur](/maintainers/fuatogur)

---

Top Contributors

[![fuatogur](https://avatars.githubusercontent.com/u/58439290?v=4)](https://github.com/fuatogur "fuatogur (2 commits)")

---

Tags

jwtlaravel

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/fuatogur-laravel-jwt/health.svg)](https://phpackages.com/packages/fuatogur-laravel-jwt)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[benbjurstrom/cognito-jwt-guard

A laravel auth guard for JSON Web Tokens issued by Amazon AWS Cognito

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)

PHPackages © 2026

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