I want to use pure firebase/php-jwt library in my code. Firstly, I go to /var/www/html/ and like the official library page is suggesting, I do this
/var/www/html/
I added only one line to your code to get my code to work:
require __DIR__ . '\vendor\autoload.php'; use Firebase\JWT\JWT; /* the rest of your code after this */
I did not have to modify the jwt.php file at all.