title: Class Firebase\JWT\JWT not found
body: <p>I want to use pure <a href="https://github.com/firebase/php-jwt" rel="noreferrer">firebase/php-jwt</a> library in my code. Firstly, I go to <code>/var/www/html/</code> and like the official library page is suggesting, I do this</p>
  
  <pre><code>composer require firebase/php-jwt
  </code></pre>
  
  <p>After I run this command, I see that a new vendor folder is created inside <code>/var/www/html/</code> with a lot of files and subfolders. I then create my <code>token.php</code> file right in <code>/var/www/html/</code> with contents similar to that from the official page:</p>
  
  <pre><code>&lt;?php
  use \Firebase\JWT\JWT;
  
  $key = "example_key";
  $token = array(
      "iss" =&gt; "http://example.org",
      "aud" =&gt; "http://example.com",
      "iat" =&gt; 1356999524,
      "nbf" =&gt; 1357000000
  );
  
  $jwt = JWT::encode($token, $key);
  $decoded = JWT::decode($jwt, $key, array('HS256'));
  
  print_r($decoded);
  </code></pre>
  
  <p>However, when I go to <em>localhost/token.php</em>, I get this error message:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Class 'Firebase\JWT\JWT' not found in /var/www/html/token.php:12 Stack trace: #0 {main} thrown in /var/www/html/token.php on line 12</p>
  </blockquote>
  
  <p>I'm not sure if it matters, but my PHP version is 7.0.</p>