iiiicaro/sentiment-thermometer

Measure the sentiment around a word, name, sentence or hashtag using social networks.

v1.0 2017-02-17 03:15 UTC

This package is auto-updated.

Last update: 2022-05-05 10:58:12 UTC


README

68747470733a2f2f63646e2e7261776769742e636f6d2f696969696361726f2f73656e74696d656e742d746865726d6f6d657465722f33306534663431302f6c6f676f2e706e67

Language License Latest Stable Version

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

  1. Create an issue to discuss about your idea
  2. [Fork it] (https://github.com/iiiicaro/sentiment-thermometer/fork)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request
  7. Profit! ✅