Try this code:
<?php $url = "https://twitter.com/users/show/<your_twitter_name>";
$response = file_get_contents($url, true);
$t_profile = new SimpleXMLElement($response);
$count = $t_profile->followers_count;
echo $count." Followers";
Just make sure that in your php extensions->php_openssl is active. If not than change its state to active and restart all services of your apache.