PHP code example of jbuncle / php-vadersentiment
1. Go to this page and download the library: Download jbuncle/php-vadersentiment library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jbuncle / php-vadersentiment example snippets
use VaderSentiment\SentimentIntensityAnalyzer;
unny.";
$sentimenter = new SentimentIntensityAnalyzer();
$result = $sentimenter->getSentiment($textToTest);
print_r($result);