Very good, I would like to be able to use JWT without installing it with composer, I have seen that a colleague has been able to call the libraries with require_once, the fact is that when I want to use
$jwt = JWT::encode($token, $key);
$decoded = JWT::decode($jwt, $key, array('HS256'));
The web gives me an error. This would be the code with calls to bookstores
<?php //Este archivo lo que hara será pintar la tabla de la tarea por factura
require_once('../jwt/BeforeValidException.php');
require_once('../jwt/ExpiredException.php');
require_once('../jwt/JWT.php');
require_once('../jwt/SignatureInvalidException.php');
$key = "example_key";
$token = array(
"iss" => "http://example.org",
"aud" => "http://example.com",
"iat" => 1356999524,
"nbf" => 1357000000
);
$jwt = JWT::encode($token, $key);
$decoded = JWT::decode($jwt, $key, array('HS256'));
?>
Greetings