Emotion Comment

Software that shows the emotions in the written messages. You can use it in the comments on your website. This way you can measure the reaction of the visitors and the value of the content.

Sample Product


Comment:



Write a comment using these emojis.
🥳😡🤬😍😉😎😅😃😊😄😆😋🤣😂😁😀❤

Sample:

PHP Code:

    function curl($a){
        $ch         = curl_init();

        curl_setopt_array($ch, [
            CURLOPT_URL             => $a,
            CURLOPT_RETURNTRANSFER  => true
        ]);

        $source = curl_exec($ch);
        curl_close($ch);

        return $source;
    }

    $api    = "https://getapimaker.com/api/?access_token=ecfe0ef749e95122acc8f539a2ce2f90";

    $json   = json_decode( curl($api), true);

    if ($_POST) {
        $comment = $_POST["comment"];

        foreach ($json as $row) {
            if (strstr($comment, $row["Word"]["title"][0]["plain_text"])) {
                echo "<strong>The sentiment in this comment:</strong> " . $row["Result"]["rich_text"][0]["plain_text"] . "<hr>";
            }
        }
    }