PHP code example of maymeow / dice
1. Go to this page and download the library: Download maymeow/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/ */
maymeow / dice example snippets
$dice = new Dice();
$dice->roll();
// throw 3 times with stanard cube Dice
$dice->roll('3x6');
// throw 5 times with non standar dice
$dice->roll('5x20');