Skip to content
No description, website, or topics provided.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Jwt.php
LICENSE
README.md
composer.json
version.json

README.md

neoan3-jwt

Simple JWT implementation suited for neoan3 developers.

Installation

composer require neoan3-apps/jwt

Quick start

require dirname(__FILE__).'/vendor/autoload.php'

use Neoan3\Apps\JWT;

$mySecret = '123456';

JWT::expiresAt('+1 hour');

// encode

$token = JWT::encode($mySecret);

// verify & decode

$decoded = JWT::decode($token, $mySecret);

if($decoded['error'] === false){

  print_r($decoded['decoded']);
  
}
You can’t perform that action at this time.