title: How to send a tweet from PHP with OAuth?
body: <p>There's a few tutorials and classes out there but they no longer appear to work since Twitter changed to oAuth.</p>
  
  <p>How do I send a tweet from PHP, in the most basic way possible?</p>
  
  <p>For example, the 'old' way using the MyTwitter class was as follows:</p>
  
  <pre><code>require_once('MyTwitter.class.php');
  $twitter =  new MyTwitter('username', 'password');
  $message = "API Test.";
  $result = $twitter-&gt;updateStatus($message);
  print_r($result);
  </code></pre>