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

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

khaqan/php-jwt
==============

Independant php calss module for standard JWT

v1.0(5y ago)47MITPHP

Since Dec 21Pushed 5y ago2 watchersCompare

[ Source](https://github.com/khaqanashraf/php-jwt)[ Packagist](https://packagist.org/packages/khaqan/php-jwt)[ RSS](/packages/khaqan-php-jwt/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-jwt [![Generic badge](https://camo.githubusercontent.com/6c70dd4ea0979d071d169b0a1bb1b89631dc2c11bf8931e3137c1106186865e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76312e302d677265656e2e737667)](https://shields.io/)
===========================================================================================================================================================================================================================================================

[](#php-jwt-)

PHP implementation of Json Web Token based on RFC standards.

Supported Algorithms

1. HS256 (Default)
2. HS384
3. HS512

validation responses
====================

[](#validation-responses)

While validating a Json Web Token with secret key then returned response might be one of these

{"message": "", "status": 200, "result": "data"}

{"message": "no authorization token", "status": 401}

{"message": "invalid token", "status": 401}

{"message": "token expired", "status": 401}

{"message": "unauthorized request", "status": 401}

exp check: enabled
==================

[](#exp-check-enabled)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

1973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/199cb65b6164a0d2e8e9be20ff4bf8e4fa9db4a907ad74bd342ad4c5fa6d191c?d=identicon)[khaqan](/maintainers/khaqan)

---

Top Contributors

[![khqnn](https://avatars.githubusercontent.com/u/56000386?v=4)](https://github.com/khqnn "khqnn (17 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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