<?php
require('autoload.php');
use Abraham\TwitterOAuth\TwitterOAuth;
define('CONSUMER_KEY','...');
define('CONSUMER_SECRET','...');
$access_token = '...';
$access_token_secret = '...';
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
$content = $connection->get("account/verify_credentials");
$url = $connection->url("oauth/authorize", ["oauth_token" => "..."]);
//$url = $connection->url("1.1/tweets/search/30day/", ["q" => "credila"]); testing
//$statuses = $connection->get("statuses/home_timeline", ["count" => 25, "exclude_replies" => true]);
$statuses = $connection->get("search/30day/tweets", ["q" => "credila"]);
echo "<pre>";
print_r($statuses);
?>