PHP code example of enebe-nb / phergie-irc-plugin-react-autorejoin
1. Go to this page and download the library: Download enebe-nb/phergie-irc-plugin-react-autorejoin 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/ */
enebe-nb / phergie-irc-plugin-react-autorejoin example snippets
return array(
'plugins' => array(
new \EnebeNb\Phergie\Plugin\AutoRejoin\Plugin(array(
// Required: list of channels to rejoin
'channels' => array('#channel1', '#channel2', '#channelN'),
// or
'channels' => '#channel1,#channel2,#channelN',
// Optional: channel keys
'keys' => array('key1', 'key2', 'keyN'),
// or
'keys' => 'key1,key2,keyN',
)),
),
);
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit