PHPackages                             cvogit/lumen-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. cvogit/lumen-jwt

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

cvogit/lumen-jwt
================

An implementation of firebase/php-jwt for Lumen, a Laravel micro framework.

v1.0.3(8y ago)1591MITPHPPHP ^7.0

Since Sep 23Pushed 8y agoCompare

[ Source](https://github.com/cvogit/lumen-jwt)[ Packagist](https://packagist.org/packages/cvogit/lumen-jwt)[ RSS](/packages/cvogit-lumen-jwt/feed)WikiDiscussions master Synced today

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

LumenJWT
========

[](#lumenjwt)

LumenJWT is an Http guard for Lumen, a Laravel micro framework.

- Create JWT using firebase/php-jwt
- Guard Http requests

### Dependencies

[](#dependencies)

- \[firebase/php-jwt\] - A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.
- \[php\] - v5.6 +

### Installation

[](#installation)

Use Composer to install LumenJWT and its the dependencies.

```
$ composer require cvogit/LumenJWT
$ composer install
```

### Configuration

[](#configuration)

In bootstrap/app.php enable the middleware:

```
$app->routeMiddleware([
    'jwt' => Cvogit\LumenJWT\Http\Middleware\JwtGuard::class,
]);

```

In `.env`

- Create `JWT_KEY` and give it a random string.
- Create `JWT_EXP`, set the time until the token expire in seconds, if not set the default is 7200 seconds.

Usage
-----

[](#usage)

Please visit the [Wiki](https://github.com/cvogit/lumen-jwt/wiki).

### Todos

[](#todos)

- Add blacklist option

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~7 days

Total

4

Last Release

3130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76616159fdb2fe70c164f2f97d6f1cbd05d4d9246ffc38e8473cddbda6abc890?d=identicon)[cvogit](/maintainers/cvogit)

---

Top Contributors

[![cvogit](https://avatars.githubusercontent.com/u/25906757?v=4)](https://github.com/cvogit "cvogit (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cvogit-lumen-jwt/health.svg)

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M161](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

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