title: Codeigniter 3: How to use composer packages? (Twilio SDK)
body: <h3>What I did so far:</h3>
  
  <p>I am pretty familiar with CI, but new to composer and the twilio SDK. Reading some tutorials and docs I managed to install composer and the twilio package. However the <code>/vendor</code> folder is parallel to my CI installation:</p>
  
  <pre><code>/var/www/html/
   - application
   - system
   - vendor
  </code></pre>
  
  <p>I have therefore edited the config.php setting the path like this:</p>
  
  <pre><code>$config['composer_autoload'] = '/var/www/html/vendor/autoload.php';
  </code></pre>
  
  <p>In my controller tried to use the SDK as documented in the Twilio SDK:</p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  
  class Test extends CI_Controller {
  
      use Twilio\Rest\Client;
  
      public function twilio()
      {
          $client = new Client($AccountSid, $AuthToken);
  
      }
  
  }
  </code></pre>
  
  <p>However I get back an error:</p>
  
  <blockquote>
    <p>Fatal error: Test cannot use Twilio\Rest\Client - it is not a trait in /var/www/html/application/controllers/Test.php on line 6</p>
  </blockquote>
  
  <h3>Question: How do I correctly use Composer Packages in Codeingiter 3?</h3>