iiiicaro/sentiment-thermometer

使用社交媒体测量围绕一个单词、姓名、句子或标签的情感。

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

This package is auto-updated.

Last update: 2024-09-05 15:49:28 UTC


README

Language License Latest Stable Version

关于情感温度计

情感温度计是一个库和工具,用于使用社交媒体测量围绕一个单词、姓名、句子或标签的情感。

特性

  • 完全集成twitter动态
  • 积极/消极/中立分析
  • 易于在你的项目中集成
  • 根据需要定制
  • 极其 易于使用
  • 非常快速启动和响应时间

安装

Composer

$ composer require iiiicaro/sentiment-thermometer 

用法

基本用法

<?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);

贡献

错误报告与功能请求

请使用问题追踪器来报告任何错误或功能请求。

社交编码

  1. 创建问题来讨论你的想法
  2. [分支它] (https://github.com/iiiicaro/sentiment-thermometer/fork)
  3. 创建你的功能分支 (git checkout -b my-new-feature)
  4. 提交你的更改 (git commit -am 'Add some feature')
  5. 推送到分支 (git push origin my-new-feature)
  6. 创建一个新的Pull Request
  7. 获利!✅