https://trinitytuts.com/secure-your-php-web-services-using-jwt/
Secure your PHP Web Services using JWT