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

4.0.0 2016-09-07 20:08 UTC

README

A bundle for sending tweets as push notifications

Latest Stable Version License Build Status SensioLabsInsight

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.