Download the PHP package codryn/phpdice without Composer

On this page you can find all versions of the php package codryn/phpdice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpdice

PHPDice

PHP Version PHPStan Level 10 CI Latest Stable Version

PHP library for parsing and rolling dice expressions for tabletop RPG systems.

PHPDice is a powerful and flexible library that allows developers to parse and roll complex dice expressions used in various tabletop role-playing games (RPGs). It supports a wide range of dice mechanics, including advantage/disadvantage, success counting, rerolls, exploding dice, critical hits, and more.

Features

Requirements

Installation

Quick Start and Usage

See docs/quickstart.md for a 10-minute tutorial.

Dice Expressions

See docs/expressions.md for all supported dice expressions.

Game System Support

System Example Features
D&D 5e 1d20 auto 20 crit 20 +5 dc >= 15 Auto success, criticals, modifiers, comparisons
Pathfinder 3d6+2 Basic dice, modifiers
Shadowrun 5e 12d6 edge count >=5 Success counting, edge (Rule of Six)
World of Darkness 10d10 >=8 Success counting
FATE 4dF+2 Fudge dice, modifiers
Savage Worlds 1d6 explode + 1d8 explode Exploding dice
Call of Cthulhu d% Percentile dice
Even/Odd Counting 6d6 count even or 12d4 count odd Count even or odd results

API Overview

See docs/api.md for complete reference.

Documentation

Development

See CONTRIBUTING.md for development guidelines.

Architecture

PHPDice is structured into several key components:

Performance

PHPDice is optimized for real-time use:

Tips for best performance:

Quality Standards

Contributing

Contributions are welcome! See CONTRIBUTING.md for:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

See CHANGELOG.md for version history and migration guides.

Support

Credits

Created and maintained by Marco for Codryn.

Special thanks to:

Game Systems Copyright

This library implements dice roll mechanics from various tabletop RPG systems for non-commercial use. All game system names, mechanics, and related intellectual property remain the property of their respective copyright holders. See GAME_SYSTEMS_COPYRIGHT.md for detailed copyright notices and attributions.


Built for the tabletop RPG community ๐ŸŽฒ


All versions of phpdice with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codryn/phpdice contains the following files

Loading the files please wait ...