title: Where should I put a library in a Yii project that is not available via Composer?
body: <p>I can't put the library under <code>vendor/</code> because that directory is ignored in <code>.gitignore</code>. I put it under <code>bing-ads/</code> and I have </p>
  
  <pre><code>&lt;?php
  namespace app\models;
  
  include 'bing-ads\v10\bingads\ClientProxy.php';
  
  use \Yii;
  use BingAds\Proxy\ClientProxy;
  </code></pre>
  
  <p>to access it. It works for console commands/actions, but I have a feeling it will not work during a web call because the root directory will be <code>web/</code>. Where should I put this library and how can I access it via both console actions and web actions?</p>
  
  <p>The <a href="https://code.msdn.microsoft.com/Bing-Ads-API-Version-9-in-fb27761f" rel="nofollow">Microsoft PHP library is located here</a>.</p>