PHP code example of phergie / phergie-irc-plugin-react-quit

1. Go to this page and download the library: Download phergie/phergie-irc-plugin-react-quit 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/ */

    

phergie / phergie-irc-plugin-react-quit example snippets


return array(
    'plugins' = array(
        new \Phergie\Irc\Plugin\React\Command\Plugin, // dependency
        
        new \Phergie\Irc\Plugin\React\Quit\Plugin(array(
        
            // Optional: sprintf-compatible template for the message sent when the bot
            // quits; takes one parameter, a string containing the nick of the user who
            // initiated the command to quit
            'message' => 'because %s said so',
        
        )),
    )
);

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit