PHP code example of chrismou / phergie-irc-plugin-react-dice

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


new \Chrismou\Phergie\Plugin\Dice\Plugin

new \Chrismou\Phergie\Plugin\Dice\Plugin(
    "defaultSides": 6,      // The number of sides on the dice if excluded from the command
    "maxRolls": 50,         // Maximum number of dice
    "maxSides": 1000,       // Maximum number of sides per dice
    "showSums": true        // Show the sums in the response
)

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