PHPackages                             fusionauth/jwt-auth-webtoken-provider - 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. fusionauth/jwt-auth-webtoken-provider

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

fusionauth/jwt-auth-webtoken-provider
=====================================

This package uses web-token/jwt-framework as a provider for tymon/jwtauth

1.0.0(2y ago)023.6k↓94.9%[1 PRs](https://github.com/FusionAuth/fusionauth-laravel-jwt-auth-webtoken-provider/pulls)Apache-2.0PHPPHP ^8.1

Since Jul 1Pushed 3mo ago8 watchersCompare

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

READMEChangelogDependencies (10)Versions (3)Used By (0)

PHP JWT Framework for Laravel
=============================

[](#php-jwt-framework-for-laravel)

[![Integration](https://github.com/vcampitelli/fusionauth-laravel-jwt-auth-webtoken-provider/actions/workflows/integration.yml/badge.svg)](https://github.com/vcampitelli/fusionauth-laravel-jwt-auth-webtoken-provider/actions/workflows/integration.yml)

This library adds support to [`web-token/jwt-framework`](https://github.com/web-token/jwt-framework) as an alternative to [`lcobucci/jwt`](https://github.com/lcobucci/jwt) in [`tymon/jwt-auth`](https://github.com/tymondesigns/jwt-auth), which is probably the most used Laravel package for JWT authentication.

The main goal here is to provide [JWKS support](https://datatracker.ietf.org/doc/html/rfc7517) instead of using public keys stored locally.

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

[](#installation)

You can install this library via [Composer](https://getcomposer.org).

```
composer require fusionauth/jwt-auth-webtoken-provider
```

Then, you should add one of [PHP JWT Framework's Signature libraries](https://web-token.spomky-labs.com/the-components/signed-tokens-jws/signature-algorithms) according to the algorithm you want to use:

- HMAC algorithms (`HS256`, `HS384` or `HS512`): ```
    composer require web-token/jwt-signature-algorithm-hmac
    ```
- RSASSA-PKCS1 v1\_5 algorithms (`RS256`, `RS384` or `RS512`): ```
    composer require web-token/jwt-signature-algorithm-rsa
    ```
- ECDSA algorithms (`ES256`, `ES384` or `ES512`): ```
    composer require web-token/jwt-signature-algorithm-ecdsa
    ```

Usage
-----

[](#usage)

This requires composer 2.2 or greater.

Publish this package config file (which overrides [the one from `tymon/jwt-auth`](https://jwt-auth.readthedocs.io/en/develop/laravel-installation/#publish-the-config)):

```
php artisan vendor:publish --provider="FusionAuth\JWTAuth\WebTokenProvider\Providers\WebTokenServiceProvider"
```

### Using JWKS

[](#using-jwks)

Instead of providing a local public key and use [JWKS](https://datatracker.ietf.org/doc/html/rfc7517), edit your `.env` file to add these lines:

```
JWT_JWKS_URL=https://your.application.address.to/jwks.json
JWT_JWKS_URL_CACHE=86400
```

Packagist
---------

[](#packagist)

You can find this on

This packagist listing is updated using a GitHub webhook.

Release
-------

[](#release)

- `sb release`
- `sb publish`

Questions and support
---------------------

[](#questions-and-support)

If you have a question or support issue regarding this client library, we'd love to hear from you.

If you have a paid edition with support included, please [open a ticket in your account portal](https://account.fusionauth.io/account/support/). Learn more about [paid editions here](https://fusionauth.io/pricing).

Otherwise, please [post your question in the community forum](https://fusionauth.io/community/forum/).

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

[](#contributing)

Bug reports and pull requests are welcome on GitHub at .

License
-------

[](#license)

This code is available as open source under the terms of the [Apache v2.0 License](https://opensource.org/licenses/Apache-2.0).

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance58

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.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

Unknown

Total

1

Last Release

1043d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b15b07b3cc8c22659ac3f6f663a0dd9ce82f6729166372140d8322511ede0ad?d=identicon)[mooreds](/maintainers/mooreds)

---

Top Contributors

[![vcampitelli](https://avatars.githubusercontent.com/u/1877191?v=4)](https://github.com/vcampitelli "vcampitelli (15 commits)")[![mooreds](https://avatars.githubusercontent.com/u/91825?v=4)](https://github.com/mooreds "mooreds (5 commits)")[![fusionauth-platform-team](https://avatars.githubusercontent.com/u/158609934?v=4)](https://github.com/fusionauth-platform-team "fusionauth-platform-team (1 commits)")[![johnjeffers](https://avatars.githubusercontent.com/u/11821214?v=4)](https://github.com/johnjeffers "johnjeffers (1 commits)")

---

Tags

jwtlaravelJWKauthAuthenticationJSON Web TokenJWKS

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fusionauth-jwt-auth-webtoken-provider/health.svg)

```
[![Health](https://phpackages.com/badges/fusionauth-jwt-auth-webtoken-provider/health.svg)](https://phpackages.com/packages/fusionauth-jwt-auth-webtoken-provider)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M66](/packages/auth0-auth0-php)[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)
