The PHP example for accessing Twitter API resource - statuses/mentions_timeline with twitteroauth PHP library. Suppose you've already registered as a developer in Twitter and created app and got the four things for the example.
1.API key
2.API secret
3.Access token
4.Access token Secret
Step 1. Download the twitteroauth including "oauth.php", "twitteroauth.php", "config.php" from twitteroauth github.
Step 2. Modify CONSUMER_KEY and CONSUMER_SECRET with your API key and API secret in "config.php".
Step 3. Try the code below to call resource - statuses/home_timeline with your Access token and Access token Secret.