{
"require": {
"stocarul/twitter-bundle": "dev-master"
}
}// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new JMS\SerializerBundle\JMSSerializerBundle(),
new Stocarul\TwitterBundle\StocarulTwitterBundle(),
);
}// app/config/config.yml
stocarul_twitter:
oauth:
# Application key (mandatory)
consumer_key: your_twitter_consumer_key
consumer_secret: your_twitter_consumer_secret
# Access token (optional)
# Can be used to make API requests on your own account's behalf
token: your_twitter_token_key
token_secret: your_twitter_token_secretcomposer installCreate a test app on Twitter Developers, then create Tests/Fixtures/App/config/parameters.yml from Tests/Fixtures/App/config/parameters.yml.dist and edit it to add your credentials. To check if everything works just execute the phpunit command in the root directory.