PHPackages                             mikejw/elib-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. mikejw/elib-jwt

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

mikejw/elib-jwt
===============

JWT Support for empathy

v1.0.0(1mo ago)01541MITPHP

Since Jun 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/empathy-software/elib-jwt)[ Packagist](https://packagist.org/packages/mikejw/elib-jwt)[ Docs](https://empathy.sh)[ RSS](/packages/mikejw-elib-jwt/feed)WikiDiscussions master Synced 1w ago

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

Empathy PHP Framework - ELib-JWT
================================

[](#empathy-php-framework---elib-jwt)

JWT Support for Empathy Applications using .

This extension depends on [elib-base](/docs/elib-base/).

The `JWT` service will automatically be enabled for your application. (See `services.php`).

The two methods available with this extension are:

```
get('JWT')->generate();

```

`generate()` uses a one-hour lifetime by default. Pass a lifetime in seconds when a different expiry is required:

```
get('JWT')->generate($ttl);

```

The default can be configured with the `ELIB_JWT_TTL` environment variable or the ELib `JWT_TTL` setting. `getTTL()` returns the resolved lifetime, which is useful when setting a browser cookie to the same expiry:

```
get('JWT');
$ttl = $jwt->getTTL();
$token = $jwt->generate($ttl);

```

and

```
get('JWT')->tryAuthenticate();

```

Licence
-------

[](#licence)

Empathy and officially released extension libraries are now distributed under an MIT license. See [LICENSE](./LICENSE).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

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

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/715d4159043b7e1e6daa0f1717d396c480616e1db9aee2d1c4738d69217cbd37?d=identicon)[mikejw](/maintainers/mikejw)

---

Top Contributors

[![mikejw](https://avatars.githubusercontent.com/u/115110?v=4)](https://github.com/mikejw "mikejw (30 commits)")

---

Tags

lib

### Embed Badge

![Health badge](/badges/mikejw-elib-jwt/health.svg)

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k302.1M240](/packages/google-auth)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121269.8k1](/packages/ellaisys-aws-cognito)[rainlab/user-plugin

User plugin for October CMS

11855.3k17](/packages/rainlab-user-plugin)

PHPackages © 2026

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