mcfedr / twitterpushbundle
A bundle for pushing tweets are push notifications
Installs: 134
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.2
- guzzlehttp/oauth-subscriber: ^0.3
- mcfedr/awspushbundle: ^6.5.1
- symfony/symfony: ^3.1
Requires (Dev)
README
A bundle for sending tweets as push notifications
Install
Composer
php composer.phar require mcfedr/twitterpushbundle
AppKernel
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(),
Config
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
Daemon
Run the daemon ./app/console mcfedr:twitter:stream --env=prod --no-debug
There is a sample supervisord config in the supervisord folder.