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

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

jinpy666/jwt
============

JSON Web Token (JWT)

1.0(6y ago)08MITPHPPHP &gt;=7.0

Since Jul 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jinpy666/jwt)[ Packagist](https://packagist.org/packages/jinpy666/jwt)[ Docs](https://github.com/jinpy666/jwt)[ RSS](/packages/jinpy666-jwt/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

jwt
===

[](#jwt)

Example:
========

[](#example)

```
// Secret password
$key = '1234';

// Claimset
$claimSet = array(
    // user id
    'iss' => '1',
    // Expiration Time
    'exp' => strtotime(date('Y-m-d H:i:s') . ' + 1 day')
);

$jwt = new \Jinpy666\Jwt\JsonWebToken();

// Create token
$token = $jwt->encode($claimSet, $key);

// check token
$claimDecoded = $jwt->decode($token, $key);

if($claimDecoded['valid'] == true) {
    echo 'Token is valid';
} else {
    echo 'Error: Token is not valid';
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

2480d ago

### Community

Maintainers

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

---

Top Contributors

[![jinpy666](https://avatars.githubusercontent.com/u/5868671?v=4)](https://github.com/jinpy666 "jinpy666 (2 commits)")

---

Tags

library

### Embed Badge

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

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

###  Alternatives

[litesaml/lightsaml

SAML 2.0 PHP library

1055.5M18](/packages/litesaml-lightsaml)[2amigos/2fa-library

2 Factor Authentication (2FA) library

34367.1k7](/packages/2amigos-2fa-library)[spinen/laravel-discourse-sso

Integrate Discourse SSO into Laravel.

4897.8k](/packages/spinen-laravel-discourse-sso)

PHPackages © 2026

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