title: How do I use the new Twilio PHP API version (twilio-php-5.0.0-RC7)?
body: <p>Please can someone explain to me how I can convert this code to work with the new Twilio PHP API version available to download on GitHub (twilio-php-5.0.0-RC7)?</p>
  
  <pre><code>&lt;?php
      // Get the PHP helper library from twilio.com/docs/php/install
      require_once('twilio/Services/Twilio.php'); // Loads the library
  
      // Your Account Sid and Auth Token from twilio.com/user/account
      $sid = "";
      $token = "";
      $client = new Services_Twilio($sid, $token);
  
      $messages = $client-&gt;account-&gt;messages-&gt;getIterator(0, 50, array(
          'To' =&gt; $_SERVER['QUERY_STRING']
      ));
  
      foreach ($messages as $message) {
          echo "&lt;tr&gt;&lt;td class=\"text-center\"&gt;" . $message-&gt;from . "&lt;/td&gt;&lt;td class=\"text-center\"&gt;" . $message-&gt;date_sent . "&lt;/td&gt;&lt;td class=\"text-center\"&gt;" . $message-&gt;body . "&lt;/td&gt;&lt;/tr&gt;";
      }
      ?&gt;
  </code></pre>
  
  <p>There is no longer a <code>twilio/Services/Twilio.php</code> file to include and I can't see anything of a similar name and also the documentation doesn't seem to have been updated with a similar example to the above as far as I can see.</p>