thefourthdev / dice
Roll the dice!
v0.4.0
2025-04-30 15:35 UTC
Requires
- php: ^8.4
Requires (Dev)
- laravel/pint: ^v1.22.0
- pestphp/pest: ^v3.8.2
README
Roll the dice!
Installation
You can install the package via composer:
composer require thefourthdev/dice
Usage
use TheFourthDev\Dice\Dice;
$die = Dice::d6();
$rolledDie = $die->roll();
$value = $die->getValue(); // e.g. 5
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.