PHP code example of phergie / phergie-irc-plugin-react-magic-eight-ball

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


new \Phergie\Irc\Plugin\React\MagicEightBall\Plugin()

new \Phergie\Irc\Plugin\React\MagicEightBall\Plugin(
    new \Phergie\Irc\Plugin\React\MagicEightBall\EightballProvider() // Replace with your own provider
)

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