Possible packages: - https://github.com/emarref/jwt - https://github.com/firebase/php-jwt Sample usage: https://www.portaldrazeb.cz/napoveda/api Explain (in Czech language): https://zooom.cz/json-web-tokens-jwt/