Php – Grabbing tweets using PHP


I am trying to grab tweets from Twitter. What I have is a list of users which I would like to grab their tweets from and store them in my database. I would like to know if I am going to use Twitter API or is there any simple code for me to achieve this.

According to there are five libraries in PHP. I would like to know which one is good for me to use?

Thanks everyone.

Best Solution

With Twitter it couldn't be simpler. Just file_get_contents() this URL: and you'll get a JSON with USERNAME's 10 latest tweets.

$tweets = json_decode(file_get_contents(''));