title: IEXTrading API php class
body: <p>Good day, I'm trying to import stock quotes using IEX Trading API.
  I founded some php classes to use those apis but I'm having troubles in intalling them:</p>
  
  <p>In my index.php page I'm including the main class file:
  <code>include("DPRMC/IEXTrading/src/IEXTrading.php");</code></p>
  
  <p>no problems here, the inclusion works (o tried echoing a variable and is actually printed on screen) </p>
  
  <p>in the IEXTrading.php file I have this code:</p>
  
  <pre><code>namespace DPRMC\IEXTrading;
  
  use DPRMC\IEXTrading\Exceptions\InvalidStockChartOption;
  use DPRMC\IEXTrading\Exceptions\ItemCountPassedToStockNewsOutOfRange;
  use DPRMC\IEXTrading\Exceptions\UnknownSymbol;
  use DPRMC\IEXTrading\Responses\StockChart;
  use DPRMC\IEXTrading\Responses\StockCompany;
  use DPRMC\IEXTrading\Responses\StockFinancials;
  use DPRMC\IEXTrading\Responses\StockLogo;
  use DPRMC\IEXTrading\Responses\StockNews;
  use DPRMC\IEXTrading\Responses\StockPeers;
  use DPRMC\IEXTrading\Responses\StockPrice;
  use DPRMC\IEXTrading\Responses\StockQuote;
  use DPRMC\IEXTrading\Responses\StockRelevant;
  use DPRMC\IEXTrading\Responses\StockStats;
  use GuzzleHttp\Client;
  use GuzzleHttp\Exception\ClientException;
  
  
  class IEXTrading { ............ }
  </code></pre>
  
  <p>but when in my index.php page I call</p>
  
  <pre><code>$stockQuote = IEXTrading::stockQuote( 'aapl' );
  echo $stockQuote-&gt;companyName; // Apple Inc.
  </code></pre>
  
  <p>I get this error:</p>
  
  <p>Fatal error: Class 'IEXTrading' not found</p>
  
  <p>any help?</p>