How To Display Twitter Followers Count In PHP

Twitter is one of the most used social networking websites on the internet. Twitter API allows you to retrieve info for specific user. All you need to do is to enter the handler of the user. You can easily retrieve a specific Twitter user’s followers count with a small snippet:

Just replace HardeepAsrani in the above code with your Twitter handler to retrieve your followers. Just like this example, you can also retrieve possibly every public Twitter user info with this API.

You can retrieve every Twitter info with following snippet:

The above code will give you following output:

Isn’t easy. You don’t need to enter any authentication keys or nothing. You just need to inter the Twitter handler of the user. You can retrieve info for more than user by separate them by comma:

That’s it. Now, you can retrieve every public info from your Twitter profile without anything, but a small snippet.