PHP Sentiment Analyzer

PHP Sentiment Analyzer is a lexicon and rule-based sentiment analysis tool that is used to understand sentiments in a sentence using VADER (Valence Aware Dictionary and sentiment Reasoner).

GitHub licensearrow-up-right GitHub issuesarrow-up-right Stablearrow-up-right Downloadarrow-up-right Twitterarrow-up-right

Features

  • Text

  • Emoticon

  • Emoji

Requirements

  • PHP 5.5 and above

Steps:

Install

Composer

Run the following to include this via Composer

Simple Usage

Simple Outputs

Advanced Usage

You can now dynamically update the VADER (Valence) lexicon on the fly for words that are not in the dictionary. See the Example below:

Advanced Outputs

Stargazers

Stargazers repo roster for @davmixcool/php-sentiment-analyzerarrow-up-right

Forkers

Forkers repo roster for @davmixcool/php-sentiment-analyzerarrow-up-right

License

This package is licensed under the MIT licensearrow-up-right.

Reference

Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.

Last updated