Are you working on a PHP application that needs to post Twitter updates from your web page? Twitter provides an API that other developers can use to create applications that can directly interact with the main social networking application.
In order to post to Twitter, whether in PHP or through another programming interface, you basically require 4 things
- Link to the Twitter API
- Twitter user name
- Twitter password
- The Twitter message
Barring the first item, all other items can be obtained using a straightforward web form. You can create bare bones HTML form or you can create a fancy form, depends on what you are trying to achieve. Once submitted, this form calls a PHP scripts that processes all the input and then posts your Tweet using the Twitter API and PHP curl library. The entire process is beautifully explained in this blog post.




