-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
47 lines (35 loc) · 1.03 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* This file is part of LHPROJECTS Twitter Client package
*
* (c) Lutchy Horace <[email protected]>
*
* PHP Version 7.2
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
// Initialize first
require 'config.php';
require 'vendor/autoload.php';
require 'Tweet.php';
require 'TweetPost.php';
require 'TwitterClient.php';
// Require all the clases I need here
use TwitterClient\TwitterClient as TwitterClient;
use Codebird\Codebird as Twitter;
use Consolidation\Log\Logger as Logger;
use Consolidation\Log\LogOutputStyler as LogOutputStyler;
use Symfony\Component\Console\Output\ConsoleOutput as ConsoleOutput;
// Startup logger
$output = new ConsoleOutput();
$logger = new Logger($output);
$logger->setLogOutputStyler(new LogOutputStyler());
// MY TwitterClient
$tc = new TwitterClient();
echo "Now running!\r\n";
if (empty($_SERVER['PRE_START'])) {
// $tc->startStreamingThread();
}
//$reply = $twitter->user();
//var_dump($twitter);