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: 2024-12-05 16:22:44 UTC


README

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! ✅