1. Go to this page and download the library: Download joshbruce/php-dice-tower 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/ */
use JoshBruce\DiceTower\DicePool;
DicePool::roll();
// rolls 1d6
DicePool::roll(1, 6);
// rolls 1d6
use JoshBruce\DiceTower\Dn;
Dn::withSides();
// roll 1 die with the given number of sides
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.