1. Go to this page and download the library: Download decrypted/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/ */
decrypted / 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');
...