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