Adding a Twitter Feed with PHP

At my marketing web site I wanted to add a Twitter feed using PHP and found something at that does just that.

The PHP coding is very simple to use with this class:


$t = new twitter;
$t->username = ‘marketingeda’;
$t->password = ‘********’;

$data = $t->userTimeline();

foreach($data as $tweet) {
print “<li>$tweet->text</li>

Here’s the output result of this PHP script:

Leave a Reply