A bundle for sending tweets as push notifications
php composer.phar require mcfedr/twitterpushbundle
Include the bundle in your AppKernel You need to also load the AWSPushBundle
public function registerBundles()
{
$bundles = array(
...
new Mcfedr\AwsPushBundle\McfedrAWSPushBundle(),
new Mcfedr\TwitterPushBundle\McfedrTwitterPushBundle(),
This is sample configuration, to add to your config.yml
mcfedr_twitter_push:
twitter:
consumer_key: 'my consumer key'
consumer_secret: 'my consumer secret'
token: 'my token'
token_secret: 'my token secret'
userid: "twitter id that you want to follow"
You can find userid at idfromuser.com. You can also use a comma separated list if you want to follow multiple users
You will also need to configure the AwsPushBundle, see the README for details
Run the daemon ./app/console mcfedr:twitter:stream --env=prod --no-debug
There is a sample supervisord config in the supervisord folder.