title: Class 'Twilio\Rest\Client' not found
body: <p>I'm trying to use twilio php api .</p>
  
  <p>This is my code:</p>
  
  <pre><code>        &lt;?php
      $sid = "xxxxxx"; 
      $token = "xxxxxxx"; 
  
      $phone=$_POST["phone"];
      $code=$_POST["code"];
  
      $client = new Twilio\Rest\Client($sid, $token);
      $message = $client-&gt;messages-&gt;create(
        $phone, 
        array(
          'from' =&gt; 'xxxxxxx', 
  
     'body' =&gt; $code
    ));
  </code></pre>
  
  <p>It gives me this error :</p>
  
  <blockquote>
    <p>Fatal error: Class 'Twilio\Rest\Client' not found in /home/vhosts/xxxx.xxxx.com/twilio/sms.php on line 9</p>
  </blockquote>
  
  <p>I've also tried this code and didn't work:</p>
  
  <pre><code>     &lt;?php
      $sid = "xxxxxxx"; 
      $token = "xxxxxxxx"; 
  
  
      require_once "Twilio/autoload.php";
          use Twilio\Rest\Client;
  
        $phone=$_POST["phone"];
         $code=$_POST["code"];
  
      $client = new Client($sid, $token);
      $message = $client-&gt;messages-&gt;create(
    $phone, 
    array(
      'from' =&gt; 'xxxxx', 
      'body' =&gt; $code
    ));
  </code></pre>
  
  <p>It gives me this error :</p>
  
  <blockquote>
    <p>Fatal error: require(): Failed opening required '/home/vhosts/xxxx.xxxxx.com/twilio/Twilio/Version.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/xxxx.xxxx.com/twilio/Twilio/autoload.php on line 140</p>
  </blockquote>