Skip to content

mcfedr/twitterpushbundle

Repository files navigation

Twitter Push Bundle

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.

About

A Symfony bundle for sending a twitter stream as push notifications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages