mcfedr/twitterpushbundle
Composer 安装命令:
composer require mcfedr/twitterpushbundle
包简介
A bundle for pushing tweets are push notifications
README 文档
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.
统计信息
- 总下载量: 139
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-12-12