Retrieving your most recent Twitter Information
Beware this content is over 7 years old and considered stale. It may no longer be accurate and/or reflect the understanding of the author but remains here for reference only. Please keep this in mind as you use this content.
During a recent project I needed a script to retrieve some real-time data from a Twitter account and display the results on the homepage.
After a quick search I came across a helpful PHP script by Joost de Valk. Much of the code below is based on his original script, so all credit to him.
My only problems with the script was that it was a little confusing as to what to insert where and it lacked a handy demo page (although if you scroll to the footer you can see it in action) or a handy download button where I can grab the files.
The following script uses the fantastic Snoopy PHP Class which simulates a web browser and allows us to retrieve the required data to be processed.
Hope that little snippet of information helps someone. An explanation may follow depending on interest.