iiiicaro / sentiment-thermometer
Measure the sentiment around a word, name, sentence or hashtag using social networks.
v1.0
2017-02-17 03:15 UTC
Requires
- abraham/twitteroauth: v0.7.2
- jwhennessey/phpinsight: v2.0.9
This package is auto-updated.
Last update: 2024-11-05 16:12:20 UTC
README
About Sentiment Thermometer
Sentiment Thermometer is a library and tool to measure the sentiment around a word, name, sentence or hashtag using social networks.
Features
- Fully integrated with twitter feed
- Positive/negative/neutral analysis
- EASY to incorporate on your projects
- CUSTOMIZE to your needs
- STUPIDLY EASY TO USE
- Very fast start up and response time
Installation
Composer
$ composer require iiiicaro/sentiment-thermometer
Usage
Basic usage
<?php require(__DIR__ . '/../vendor/autoload.php'); use iiiicaro\SentimentThermometer\SentimentThermometer; $config = [ 'twitter' => [ 'consumer_key' => 'CONSUMER_KEY_HERE', 'consumer_secret' => 'CONSUMER_SECRET_HERE', ] ]; $sentimentThermometer = new SentimentThermometer($config); $thermomether = $sentimentThermometer->get('Donald Trump'); print_r($thermomether);
Contributing
Bug Reports & Feature Requests
Please use the issue tracker to report any bugs or feature requests.
Social Coding
- Create an issue to discuss about your idea
- [Fork it] (https://github.com/iiiicaro/sentiment-thermometer/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Profit! ✅