PHP code example of sitedyno / phergie-twitch-status
1. Go to this page and download the library: Download sitedyno/phergie-twitch-status 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/ */
sitedyno / phergie-twitch-status example snippets
return [
'plugins' => [
// dependencies
new \Phergie\Plugin\Dns\Plugin,
new \Phergie\Plugin\Http\Plugin,
new \Phergie\Irc\Plugin\React\Url\Plugin,
// configuration
new \Sitedyno\Phergie\Plugin\Twitch-status\Plugin([
// optional: template used to define response to urls
'responseFormat' => '%viewers% viewers watching %display_name% play %game% - %status%',
])
]
];
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit