Skip to content

Instantly share code, notes, and snippets.

View ArcerionDev's full-sized avatar

Arcerion ArcerionDev

View GitHub Profile
@deboorn
deboorn / decode-jwt-web-token.php
Created May 31, 2017 21:19
Decode JSON Web Token with Public Key
<?php
// Example of decoding JWT Web Token with public key
// Package: https://github.com/firebase/php-jwt
require_once 'vendor/autoload.php';
use \Firebase\JWT\JWT;
$key = "-----BEGIN PUBLIC KEY----- YOUR PUBLIC KEY HERE -----END PUBLIC KEY-----";