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

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

kardigan/laravel-kong-jwt
=========================

Middleware to add kong jwt claims to laravels config

v0.0.9(5y ago)11.2kMITPHPPHP &gt;=5.5.9

Since May 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Kardigan/laravel-kong-jwt)[ Packagist](https://packagist.org/packages/kardigan/laravel-kong-jwt)[ RSS](/packages/kardigan-laravel-kong-jwt/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (10)Used By (0)

Laravel Kong JWT
================

[](#laravel-kong-jwt)

Package to read JWT claims sent through the JWT plugin in Kong (()) to the upstream api.

It adds a middleware that pulls out all claims and add them to the config under the key "claims".

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

[](#installation)

Add the package

```
composer require kardigan/laravel-kong-jwt

composer dump-autoload

```

Add the package to config/app.php under providers

```
Kardigan\LaravelKongJwt\ServiceProvider::class,

```

Add the middleware to app/Http/Kernel.php or set dynamically in your routes.

Usage
-----

[](#usage)

If the x-consumer-custom-id is not set the middleware will return a 403 access denied.

Once the middleware is up and running you can access all claims sent through with the JWT token like this:

```
Config::get('claims');
```

The middleware are checking for a jwt token both in the header with the "authorization" key, or as a url parameter with the "token" key

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~167 days

Recently: every ~311 days

Total

9

Last Release

1952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82ba1ca11f5da7d3b7c784c350db4ed1858c86f2d48e509985a8eedf40ab6127?d=identicon)[kristianlunde](/maintainers/kristianlunde)

---

Top Contributors

[![kristianlunde](https://avatars.githubusercontent.com/u/569561?v=4)](https://github.com/kristianlunde "kristianlunde (20 commits)")

---

Tags

jwtapilaravelkong

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[benbjurstrom/passport-custom-jwt-claims

Customize JWT claims in Laravel Passport access tokens

341.8k](/packages/benbjurstrom-passport-custom-jwt-claims)[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)
