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

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


    // All configuration is optional
    new \Phergie\Irc\Plugin\React\CommandHelp\Plugin([

        // List of plugins that subscribe to command events
        // Used to return a list of available commands to users
        // All elements must implement \Phergie\Irc\Bot\React\PluginInterface
        'plugins' => [
            new Phergie\Irc\Plugin\React\TableFlip\Plugin()
        ],

        // Text to precede the list of available commands when providing it to
        // users
        'listText' => 'Available commands: ',

    ]),

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