PHP code example of chrismou / phergie-irc-plugin-react-weather
1. Go to this page and download the library: Download chrismou/phergie-irc-plugin-react-weather 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/ */
chrismou / phergie-irc-plugin-react-weather example snippets
return array(
// ...
'plugins' => array(
new \Phergie\Irc\Plugin\React\Command\Plugin, // dependency
new \Phergie\Plugin\Dns\Plugin, // dependency
new \Phergie\Plugin\Http\Plugin, // dependency
new \Chrismou\Phergie\Plugin\Weather\Plugin(array(
"config" => array("appId" => "YOUR_APP_ID")
))
)
)
new \Chrismou\Phergie\Plugin\Weather\Plugin(array(
'provider' => 'Chrismou\\Phergie\\Plugin\\Weather\\Provider\\Wunderground',
"config" => array("appId" => "YOUR_APP_ID")
))
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit