$yourChannelName = new StreamerStatus("YourChannelName");
$yourChannelNameStatus = $yourChannelName->returnLiveStatus(); // result: "online" or "offline"
- PHP Version: at least v5.6 - but v7 and higher is recommended
- Server needs to have permissions to read and write to the config-File
- cURL needs to be enabled in the php.ini / allowed on the server
The Twitch Stream Status Tool uses an App Access Token and the Client credentials flow - for more informations refer to the documentation:
This script is based on the new Twitch API (2020). The previous Twitch API was v5 / KRAKEN (deprecated).