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

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

codeforyou/jwt
==============

jwt auth for encode and decode; alg: HS256

v1.0.0(7y ago)0351MITPHPPHP &gt;=7.0.0

Since Aug 12Pushed 7y agoCompare

[ Source](https://github.com/jerrygaoyang/codeforyou-jwt)[ Packagist](https://packagist.org/packages/codeforyou/jwt)[ RSS](/packages/codeforyou-jwt/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (1)

codeforyou-jwt
==============

[](#codeforyou-jwt)

Description
-----------

[](#description)

> jwt auth for encode and decode; alg: HS256

Installation
------------

[](#installation)

```
composer require codeforyou/jwt

```

Get started
-----------

[](#get-started)

```
use Codeforyou\Jwt\JWT;

$payload = ['user_id' => 1];

$secret = '123456';

$token = JWT::encode($payload, $secret);

$payload = JWT::decode($token, $secret);

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

2879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ae44cf7b3a3bf6aa2361d793825cf2a4eae0e7079a12217b803790a5e7f1904?d=identicon)[jerrygaoyang](/maintainers/jerrygaoyang)

---

Top Contributors

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

### Embed Badge

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

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

###  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)
