Skip to content

Instantly share code, notes, and snippets.

@achudars
Last active December 17, 2015 00:19
Show Gist options
  • Select an option

  • Save achudars/5520453 to your computer and use it in GitHub Desktop.

Select an option

Save achudars/5520453 to your computer and use it in GitHub Desktop.
Display Twitter Count for a specific screen name using PHP
<?php
$url = "http://api.twitter.com/1/users/show.json?screen_name=Aleks_Cudars&include_entities=true";
$feed = file_get_contents($url);
$twitter_decoded = json_decode($feed);
echo $twitter_decoded->followers_count;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment