iiiicaro / sentiment-thermometer
使用社交媒体测量围绕一个单词、姓名、句子或标签的情感。
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-09-05 15:49:28 UTC
README
关于情感温度计
情感温度计是一个库和工具,用于使用社交媒体测量围绕一个单词、姓名、句子或标签的情感。
特性
- 完全集成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);
贡献
错误报告与功能请求
请使用问题追踪器来报告任何错误或功能请求。
社交编码
- 创建问题来讨论你的想法
- [分支它] (https://github.com/iiiicaro/sentiment-thermometer/fork)
- 创建你的功能分支 (
git checkout -b my-new-feature) - 提交你的更改 (
git commit -am 'Add some feature') - 推送到分支 (
git push origin my-new-feature) - 创建一个新的Pull Request
- 获利!✅