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

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

kampfcaspar/jwt
===============

JWT PHP library abstraction layer

v0.4.1(2y ago)0131AGPL-3.0-or-laterPHPPHP ^8.1

Since Oct 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/KampfCaspar/jwt)[ Packagist](https://packagist.org/packages/kampfcaspar/jwt)[ Docs](https://github.com/KampfCaspar/JWT)[ RSS](/packages/kampfcaspar-jwt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (7)Used By (1)

JWT abstraction library
=======================

[](#jwt-abstraction-library)

I often have the need to let a program just call an object to encode/decode a payload, without fussing about keys, algorithms etc.

The 'coder' object can be prepared and then given to a consumer that only has to call decode/encode.

This mini interface provides that functionality and can be used for JWS, JWE and Nested Webtoken.

It need an implementation, e.g. for web-token/jwt.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Total

6

Last Release

890d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07fb3eff7bb7e8785686c24748a73b466cb6063186c9d7ec5ed5ec5eea8d3321?d=identicon)[kampfcaspar](/maintainers/kampfcaspar)

---

Top Contributors

[![KampfCaspar](https://avatars.githubusercontent.com/u/274391?v=4)](https://github.com/KampfCaspar "KampfCaspar (7 commits)")

---

Tags

jwtJWSJWE

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[web-token/jwt-framework

JSON Object Signing and Encryption library for PHP and Symfony Bundle.

94518.9M77](/packages/web-token-jwt-framework)[web-token/jwt-library

JWT library

2011.2M83](/packages/web-token-jwt-library)[web-token/jwt-bundle

JWT Bundle of the JWT Framework.

132.5M7](/packages/web-token-jwt-bundle)[sop/jwx

A PHP library for JSON web tokens (JWT) with signature (JWS) and encryption (JWE) support.

26257.5k1](/packages/sop-jwx)

PHPackages © 2026

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