title: create instance of class after installing package with composer - PHP
body: <p>I just used composer to install <a href="https://github.com/ghunti/HighchartsPHP" rel="nofollow">Highcharts</a>. after installing the package i have this path in my project, to lead to the file where the class <code>Highcharts</code> defined:
  <code>$_SERVER['DOCUMENT_ROOT']."/myapp/vendor/ghunti/highcharts-php/src/Highchart.php</code></p>
  
  <p>so as i;m doing with other classes in my project i added this line in the beginning of my file:</p>
  
  <pre><code>require_once($_SERVER['DOCUMENT_ROOT']."/myapp/vendor/ghunti/highcharts-php/src/Highchart.php");
  </code></pre>
  
  <p>but when i try to create instance of this class, like:</p>
  
  <pre><code>$chart = new Highchart();
  </code></pre>
  
  <p>in my file i get this error:</p>
  
  <pre><code>Fatal error:  Class 'Highchart' not found in ...
  </code></pre>
  
  <p>any idea what am i doing wrong? thx</p>