The configuration is stored in file config.php where you have to set the Twitter API credentials in order to successfully connect and use the Twitter API There is an option in the configuration file DISPLAY_OUTPUT which specifies the output format - either simple json or rendered in latte
To run the script, first you have to install composer dependencies
composer install
Then you can run the script either by putting it on the server and navigating to index.php or in the console with simple command
php index.php
The task uses following 3rd party libraries
- TwitterOAuth - https://twitteroauth.com/
- Latte - https://latte.nette.org/cs/