1. Go to this page and download the library: Download ritero/twitch-sdk 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/ */
ritero / twitch-sdk example snippets
use \jofner\SDK\TwitchTV\TwitchSDK;
$twitch = new TwitchSDK;
...
use \jofner\SDK\TwitchTV\TwitchSDK;
use \jofner\SDK\TwitchTV\TwitchSDKException;
$twitch = new TwitchSDK;
...
$twitch = new TwitchSDK;
$channel = $twitch->channelGet('channelname');
...