You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
761 B
PHTML
25 lines
761 B
PHTML
6 years ago
|
<?php
|
||
|
session_start();
|
||
|
$appDir = getcwd();
|
||
|
include $appDir."/vendor/autoload.php";
|
||
|
include $appDir."/lib/php-sentianalysis-id/autoload.php";
|
||
|
include $appDir."/lib/LibEnv.php";
|
||
|
include $appDir."/lib/Helper.php";
|
||
|
include $appDir."/lib/CustomMysqli.php";
|
||
|
include $appDir."/lib/CleansingClass.php";
|
||
|
|
||
|
//Environment
|
||
|
$env = new LibEnv();
|
||
|
|
||
|
//Access Twitter Api
|
||
|
$twitter = new Twitter($_ENV['consumerKey'], $_ENV['consumerSecret'], $_ENV['accessToken'], $_ENV['accessTokenSecret']);
|
||
|
|
||
|
//Stemer
|
||
|
$stemmerFactory = new \Sastrawi\Stemmer\StemmerFactory();
|
||
|
$stemmer = $stemmerFactory->createStemmer();
|
||
|
|
||
|
//Sentiment
|
||
|
$sentiment = new PHPInsight\Sentiment();
|
||
|
|
||
|
//Access Database
|
||
|
$db = new CustomMysqli($_ENV['db_host'], $_ENV['db_user'], $_ENV['db_password'], $_ENV['db_name']);
|