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

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

bjyyb/hyperf-jwt
================

hyperf-jwt组件

0136PHP

Since Nov 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dinofei/hyperf-jwt)[ Packagist](https://packagist.org/packages/bjyyb/hyperf-jwt)[ RSS](/packages/bjyyb-hyperf-jwt/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

安装
--

[](#安装)

`composer require bjyyb/hyperf-jwt:dev-main`

发布配置文件
------

[](#发布配置文件)

`php bin/hyperf.php vendor:publish bjyyb/hyperf-jwt`

使用：
---

[](#使用)

### 获取jwt

[](#获取jwt)

```
$data = ['user_id' => 1];
$service = $this->container->get(\Bjyyb\JWT\JwtService::class);
/** 第二个参数为jwt.php配置的键 */
$jwt = $service->get($data, 'test');
var_dump($jwt);
```

### 解密jwt

[](#解密jwt)

```
$jwt = 'xxx';
$service = $this->container->get(\Bjyyb\JWT\JwtService::class);
$data = $service->parse($jwt);
var_dump($data);
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c07efe51625decee52824c425b38c845c846b79e601a3fbd12a5ec5b39f4461c?d=identicon)[dinofei](/maintainers/dinofei)

---

Top Contributors

[![dinofei](https://avatars.githubusercontent.com/u/34927614?v=4)](https://github.com/dinofei "dinofei (3 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)[better-futures-studio/filament-local-logins

This is my package filament-local-logins

1334.6k](/packages/better-futures-studio-filament-local-logins)

PHPackages © 2026

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