Phergie plugin for fetching a twitch channel's status/title.
The recommended method of installation is through composer.
php composer.phar require sitedyno/phergie-twitch-status
See Phergie documentation for more information on installing and enabling plugins.
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%',
])
]
];
To run the unit test suite:
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit
Released under the BSD License. See LICENSE
.