$ cd ~/ && mkdir .jwt && cd .jwt && curl https://gist.githubusercontent.com/kinncj/b245cbbf17cce28e14a2c899116acb05/raw/03b714540d36cc65b0d6c356cebc009293b70919/jwt.php > jwt.php
php jwt.php encode HS256 foo "{\"name\":\"Kinn\"}"
php jwt.php encode RSA256 my_private_key_file my_json_content
php jwt.php encode HS256 my_key my_json_content
php jwt.php encode RSA256 my_private_key_file my_json_content.json
php jwt.php encode HS256 my_key my_json_content.json
php jwt.php decode RSA256 my_public_key_file my_key_content
php jwt.php decode HS256 my_key my_key_content
php jwt.php encode HS256 foo "{\"name\":\"Kinn\"}"
php jwt.php decode HS256 foo eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiS2lubiJ9.l4JOS3Xisor8lgjs8_BvnR-o-KfUd1EZauh5vrf05CU