PHPackages                             jasonroyle/li3\_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. jasonroyle/li3\_jwt

ActiveLithium-library[Authentication &amp; Authorization](/categories/authentication)

jasonroyle/li3\_jwt
===================

JSON Web Token Session Adapter for Lithium

0.0.2(11y ago)0331[3 PRs](https://github.com/jasonroyle/li3_jwt/pulls)MITPHPPHP &gt;=5.4.0

Since May 17Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

JSON Web Token Session Adapter for Lithium
==========================================

[](#json-web-token-session-adapter-for-lithium)

Dependencies
------------

[](#dependencies)

- PHP &gt;= 5.4
- [firebase/php-jwt](https://github.com/firebase/php-jwt)

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

[](#installation)

### Composer

[](#composer)

```
composer require jasonroyle/li3_jwt

```

Enable the Libraries
--------------------

[](#enable-the-libraries)

Make the application aware of the libraries by adding the following to `app/config/bootstrap/libraries.php`.

```
/**
 * Add some plugins:
 */
Libraries::add('li3_jwt');

/**
 * Load composer libraries
 */
require_once(dirname(LITHIUM_APP_PATH) . '/vendor/autoload.php');
```

Configuration
-------------

[](#configuration)

Add the following configuration to `app/config/bootstrap/session.php` replacing `***SECRET***` with your secret string.

```
use lithium\storage\Session;

Session::config(['default' => [
	'adapter' => 'Token',
	'header' => 'Authorization',
	'prefix' => 'Bearer ',
	'strategies' => ['Jwt' => [
		'secret' => '***SECRET***'
	]]
]]);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

4064d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64b3c78db28fb95fbb5efd49d1fba515113af69f602a3de6f22f08a96641d9fe?d=identicon)[jasonroyle](/maintainers/jasonroyle)

---

Top Contributors

[![jasonroyle](https://avatars.githubusercontent.com/u/439662?v=4)](https://github.com/jasonroyle "jasonroyle (23 commits)")

### Embed Badge

![Health badge](/badges/jasonroyle-li3-jwt/health.svg)

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k294.2M219](/packages/google-auth)[rainlab/user-plugin

User plugin for October CMS

11955.0k15](/packages/rainlab-user-plugin)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[thenetworg/oauth2-azure

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

25310.7M83](/packages/thenetworg-oauth2-azure)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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