Class 'highcharts\Highcharts' not found [yii2 manually install extension]
<p>So I am new in Yii2. I'm trying to install the first extension on my app (I plan to host the webapp). I've tried working with composer but it doesn't work.</p>

<p>I place the extension folder here: <code>vendor/highcharts/src/</code></p>

<p>This is what I write in <strong>extension.php:</strong></p>

<pre><code>'highcharts' =&gt; array(
'name' =&gt; 'highcharts',
'version' =&gt; '4',
'alias' =&gt; array(
      '@highcharts' =&gt; $vendorDir . 'highcharts',
    ),
),
</code></pre>

<p>In <strong>autoload_psr4.php:</strong></p>

<pre><code>'highcharts\\' =&gt; array($vendorDir . '/highcharts/src'),
</code></pre>

<p>Di <strong>view.php:</strong></p>

<pre><code>&lt;?php
use highcharts\Highcharts;
echo Highcharts::widget([
   'options' =&gt; [
     'title' =&gt; ['text' =&gt; 'Fruit Consumption'],
   'xAxis' =&gt; [
      'categories' =&gt; ['Apples', 'Bananas', 'Oranges']
   ],
   'yAxis' =&gt; [
      'title' =&gt; ['text' =&gt; 'Fruit eaten']
   ],
   'series' =&gt; [
      ['name' =&gt; 'Jane', 'data' =&gt; [1, 0, 4]],
      ['name' =&gt; 'John', 'data' =&gt; [5, 7, 3]]
   ]
   ]
]) ;
</code></pre>

<p>This is what the error is <strong>saying:</strong></p>

<blockquote>
  <p>Class 'highcharts\Highcharts' not found</p>
</blockquote>

<p>I've tried editing the <code>use</code>  part. But still no results. So what have I missed?</p>