Roll the dice!

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Installs: 159

Dependents: 1

Suggesters: 0

Security: 0

pkg:composer/thefourthdev/dice

v0.4.0 2025-04-30 15:35 UTC

This package is not auto-updated.

Last update: 2025-08-20 17:14:55 UTC


README

Latest Version on Packagist Total Downloads

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.