title: mPDF class not found
body: <p>This code, taken directly from the mPDF manual, causes an error</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Class 'Mpdf\Config\ConfigVariables' not
    found in /HW.php:4 Stack trace: #0 {main} thrown in /HW.php on line 4</p>
  </blockquote>
  
  <p>.
  <br>
  Can anyone help?</p>
  
  <pre><code>&lt;?php
  error_reporting(E_ALL); ini_set('display_errors', '1');
  require_once __DIR__ . "/vendor/autoload.php";
  $defaultConfig = (new Mpdf\Config\ConfigVariables())-&gt;getDefaults();
  $fontDirs = $defaultConfig['fontDir'];
  
  $defaultFontConfig = (new Mpdf\Config\FontVariables())-&gt;getDefaults();
  $fontData = $defaultFontConfig['fontdata'];
  
  $mpdf = new \Mpdf\Mpdf([
      'fontDir' =&gt; array_merge($fontDirs, [
          __DIR__ . '/vendor/mpdf/mpdf/extrafonts/Open_Sans/',
      ]),
      'fontdata' =&gt; $fontData + [
          'open_sans' =&gt; [
              'R' =&gt; 'OpenSans-Regular.ttf',
              'I' =&gt; 'OpenSans-Italic.ttf',
              'B' =&gt; 'OpenSans-Bold.ttf',
          ]
      ],
      'default_font' =&gt; 'open_sans'
  ]);
  ?&gt;
  </code></pre>