updated php to use php-jwt libary