milosa / social-media-aggregator-twitter-plugin
Combine different social media types into a single feed
v0.0.2
2018-11-26 08:07 UTC
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/oauth-subscriber: ^0.3.0
- milosa/social-media-aggregator-bundle: dev-master
- symfony/cache: ^4.1
- symfony/config: ^4.1
- symfony/dependency-injection: ^4.1
- symfony/http-kernel: ^4.1
- twig/extensions: ^1.5
Requires (Dev)
- matthiasnoback/symfony-config-test: ^4.0
- matthiasnoback/symfony-dependency-injection-test: ^3.0
- phpspec/prophecy: ~1.0
- phpstan/phpstan: ^0.10.5
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2025-03-28 07:43:06 UTC
README
Twitter plugin for Milosa Social Media Aggregator Bundle
Installation
composer require milosa/social-media-aggregator-twitter-plugin
Usage
Get Twitter API access here: https://developer.twitter.com/en/apply/user You can add multiple search terms. Currently, these search types are supported:
- profile
- hashtag
Add the following config to your configuration file:
Sample config file
milosa_social_media_aggregator:
plugins:
twitter:
auth_data:
consumer_key: '%env(TWITTER_CONSUMER_KEY)%'
consumer_secret: '%env(TWITTER_CONSUMER_SECRET)%'
oauth_token: '%env(TWITTER_OAUTH_TOKEN)%'
oauth_token_secret: '%env(TWITTER_OAUTH_TOKEN_SECRET)%'
sources:
- search_term: FamilyGuyOnFox #This will use these defaults: search_type: profile, image_size: thumb and number_of_tweets: 10
- search_type: hashtag
search_term: Rotterdam
number_of_tweets: 20
- search_type: profile
search_term: nasa
number_of_tweets: 15
image_size: thumb
enable_cache: true
cache_lifetime: 3600
template: twitter.twig