PHPackages                             sanjos/jwtauth - 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. sanjos/jwtauth

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

sanjos/jwtauth
==============

JWT Authentication

2.0.0(6y ago)1513[1 PRs](https://github.com/jeconiassantos/jwt/pulls)MITPHPPHP &gt;=7.4.0CI failing

Since Aug 19Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/jeconiassantos/jwt)[ Packagist](https://packagist.org/packages/sanjos/jwtauth)[ RSS](/packages/sanjos-jwtauth/feed)WikiDiscussions master Synced 2d ago

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

JWT
===

[](#jwt)

Simple JsonWebToken with PHP

### Usage

[](#usage)

```
composer require sanjos/jwtauth

use Sanjos\JwtAuthentication;

$jwt = JwtAuthentication::getInstance(null);

$jwt->setPayload([
    'uuid'  => 'uuidTest',
    'github' => 'github.com/jeconias'
]);

$token = $jwt->getToken();

//Return: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwOlwvXC8xMjcuMC4wLjEiLCJpYXQiOjE1ODQyOTg2NDYsImV4cCI6MTU4NDMwMjg0NiwiY29udGV4dCI6eyJ1dWlkIjoidXVpZFRlc3QyIiwiZ2l0aHViIjoiZ2l0aHViLmNvbVwvamVjb25pYXMifX0.nuzDQhdfGbAIzaSQvlPpirH4DrphMMp6hRq_TqIZ1Hc

$jwt->isValid($token);

//Return: Boolean

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance50

Moderate activity, may be stable

Popularity14

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

Total

2

Last Release

2297d ago

Major Versions

1.0.0 → 2.0.02020-03-15

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

2.0.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c10ba5a29be568850def3cd1446378419db2d234e29bda809423bc2c1e735b3?d=identicon)[jeconiassantos](/maintainers/jeconiassantos)

---

Top Contributors

[![Jeconias](https://avatars.githubusercontent.com/u/32512776?v=4)](https://github.com/Jeconias "Jeconias (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sanjos-jwtauth/health.svg)

```
[![Health](https://phpackages.com/badges/sanjos-jwtauth/health.svg)](https://phpackages.com/packages/sanjos-jwtauth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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