Twitter streaming api in PHP


#1

Hi, anyone has done getting real-time data from Twitter streaming API in PHP coding language ? I thinking to get the real-time data and store in my MYSQL database to show in website. I have tried several ways in this few day, but keep getting NULL response and account authentication error. Anyone could help me on this by providing link or sample code ? Thanks in advance.


#2

Here is a list of PHP libraries for the Twitter API. There are many on GitHub as well and most will contain code examples.

https://dev.twitter.com/overview/api/twitter-libraries#php


#3

To add to @joncipriano’s answer, we have also recently started a new community repository of code examples - so if you do come up with a good example of a way to do this, feel free to contribute!


#4

I’v developed a client for this https://github.com/tech-387/Tech-387-Twitter-Streaming-Interface
You have a tutorial in the bottom how its done