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

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

wepesi/jwt
==========

simple json token web for simple authentication and token genetator

v0.3.5(4y ago)59[1 issues](https://github.com/bim-g/web_token/issues)MITPHP

Since Oct 21Pushed 4y ago2 watchersCompare

[ Source](https://github.com/bim-g/web_token)[ Packagist](https://packagist.org/packages/wepesi/jwt)[ RSS](/packages/wepesi-jwt/feed)WikiDiscussions master Synced 1mo ago

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

web\_token
==========

[](#web_token)

simple module to help generate a simple token using php

INTEGRATION
===========

[](#integration)

create a new instance of the class `JWT`, that will help you generate a new token, or validate an existing token.

```
    $data=[
        "data"=>"hello Github",
        "expired"=>300
    ];
    $tken= new JWT;
    $_token=$tken->generate($data)
    echo $_token;
```

the class Token has 2 Method:

- generate: use this method to generate a new token key. it take 2 params.

- the first parameter is an array of information according to the data to be encoded. it has 2 key : 1: `data`: where you can store all your information you want to be enconded; 2: `expired`:(iptional) how long your token will be used; the value in second, and it optional, by default the token propose `3600 second`.
- the second parameter (optional) is `cypherkye` to encode your data, by default the token generate a cypherkey for the token key.

- decode use this method to valid your token, and restore the encoded the data, and it take 2 parameters.

- the first parameter is your token string generated with is devide in 3 parts: the `encryption_iv`,the `encoded_data`,the `cypherkye`.

```
    $tken = new JWT();
    $token = "4edc3e02a3ccf20c213131efa271b79b.vJjR1CIHHdfiCj4Tt+weTtnAZ7PVQw7e1eeQtdT3/qWY43pZH91r9mO92UhXrJB2NGoSv10j.c2f8ab9f30e19e14d47a6491ca77fe36";

    $dec = $tken->decode($token);
    var_dump($dec);
```

- the second parameter (optional) is `cypherkye` to encode your data, by default the token generate a cypherkey for the token key.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

Every ~0 days

Total

2

Last Release

1660d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b7536aed6138da14cfe4d2a295017fd44f2997ee86c689e8aa6276080164cfd?d=identicon)[ibmussa](/maintainers/ibmussa)

---

Top Contributors

[![bim-g](https://avatars.githubusercontent.com/u/16068170?v=4)](https://github.com/bim-g "bim-g (21 commits)")

---

Tags

authenticationjwtphptokentokenizationwepesijwttokenJSON Web TokenPHP tokenibmussa

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[adhocore/jwt

Ultra lightweight JSON web token (JWT) library for PHP5.5+.

3031.6M15](/packages/adhocore-jwt)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M52](/packages/php-open-source-saver-jwt-auth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M67](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)

PHPackages © 2026

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