PHPackages                             zotenme/hyperf-jwt-auth - 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. zotenme/hyperf-jwt-auth

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

zotenme/hyperf-jwt-auth
=======================

JWT Authentication package for Hyperf framework

v1.0.8(8mo ago)2625↓100%MITPHPPHP &gt;=8.3

Since Jul 29Pushed 8mo agoCompare

[ Source](https://github.com/Zotenme/hyperf-jwt-auth)[ Packagist](https://packagist.org/packages/zotenme/hyperf-jwt-auth)[ RSS](/packages/zotenme-hyperf-jwt-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (0)

Hyperf JWT Authentication
=========================

[](#hyperf-jwt-authentication)

[![PHP Version](https://camo.githubusercontent.com/5c8ce4571ddf4b6b8ca847e0c4c079de98fc6460eb7eae9c81ca63319c21f546/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e332d626c75652e737667)](https://php.net/)[![Hyperf Version](https://camo.githubusercontent.com/2700943d5d9d4e16edc9d30dd2066dd8c05ed79d89799fd809fd8262579557b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6879706572662d253545332e312d677265656e2e737667)](https://hyperf.io/)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)![Tests](https://camo.githubusercontent.com/3ab4882a1b7d64e5eb5168ad0b0b9cdfd53f59f114ee5f727958504214a5789c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d70617373696e672d627269676874677265656e2e737667)![PHPStan](https://camo.githubusercontent.com/6e33b77b51a771e6655e2b9229dca1682109fdbaae399ff6b2d6d7a4d5e35db7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068707374616e2d6c6576656c253230382d627269676874677265656e2e737667)

A comprehensive JWT (JSON Web Token) authentication package for the Hyperf framework with advanced features like token rotation, blacklisting, SSO mode, and multiple algorithm support.

Features
--------

[](#features)

- 🔐 **Multiple Algorithm Support** - HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512
- 🔄 **Token Rotation** - Automatic refresh token rotation for enhanced security
- 🚫 **Token Blacklisting** - Revoke tokens before expiration with grace period support
- 👤 **Single Sign-On (SSO)** - Limit users to one active session
- ⚡ **High Performance** - Built-in caching with Hyperf cache system
- 🛡️ **Type Safe** - Full PHP 8.3+ type declarations with PHPStan level 8

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require zotenme/hyperf-jwt-auth
php bin/hyperf.php vendor:publish zotenme/hyperf-jwt-auth
```

### Basic Usage

[](#basic-usage)

```
