PHPackages                             clarkwinkelmann/flarum-ext-roll-die - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. clarkwinkelmann/flarum-ext-roll-die

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

clarkwinkelmann/flarum-ext-roll-die
===================================

Make die emoji roll a random number

1.0.0(4y ago)31.3k2MITTypeScript

Since Dec 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/clarkwinkelmann/flarum-ext-roll-die)[ Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-roll-die)[ RSS](/packages/clarkwinkelmann-flarum-ext-roll-die/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Roll a Die
==========

[](#roll-a-die)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/clarkwinkelmann/flarum-ext-roll-die/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/21a557d112033063ce385cc10fb55786f06fc750bbe755acb5faf88cc00be28f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6578742d726f6c6c2d6469652e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-roll-die) [![Total Downloads](https://camo.githubusercontent.com/75ea401a4d23e1c0bccbeaf199a7f7d166f8c26b9315413706de5f94af2bf5b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6578742d726f6c6c2d6469652e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-roll-die) [![Donate](https://camo.githubusercontent.com/0d6e4d8b50b5983a58205941b1a581b1305903393b7a39da574e3f60af3c7f5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e737667)](https://www.paypal.me/clarkwinkelmann)

> This extension is experimental. Don't use it for anything too serious just yet. Please report any issue you find!

To roll a die, insert any of the die emoji (🎲 ⚀ ⚁ ⚂ ⚃ ⚄ ⚅) on its own line in the post. The emoji can also be inside a block quote.

The random numbers are picked when the post is saved. When the post is edited, the numbers don't change, and continue to be applied in the same order (first die emoji in the post will keep the same number, even if it was moved in the content, same for second, etc.). This behavior can be modified in the admin panel.

The native emoji from the user system fonts are used, so the look can differ between devices. If the emoji fails to render, the random number is still accessible through a tooltip.

There might be issues with die emojis inserted inside of markdown or bbcode if they are alone on their line but not actually at the first level of the content. When this happens, the numbers could end up misaligned with the emojis during rendering.

The random numbers are not actually stored in the post body, but as a special post attribute. They are then mapped to the emojis in the frontend based on their order in the body.

If the post is rendered outside the Flarum web discussion, the original emoji inserted by the post author will be visible: emails, push notifications, etc. But it will not be stylised like the random dice in the discussion.

If the extension is disabled, the original emoji inserted by the post author will become visible again instead of the randomized die.

Installation
------------

[](#installation)

```
composer require clarkwinkelmann/flarum-ext-roll-die

```

Support
-------

[](#support)

This extension is under **minimal maintenance**.

It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.

You can [contact me](https://clarkwinkelmann.com/flarum) to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

Links
-----

[](#links)

- [GitHub](https://github.com/clarkwinkelmann/flarum-ext-roll-die)
- [Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-roll-die)
- [Discuss](https://discuss.flarum.org/d/29698)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1660d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

---

Top Contributors

[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (1 commits)")

---

Tags

dicerollflarumdie

### Embed Badge

![Health badge](/badges/clarkwinkelmann-flarum-ext-roll-die/health.svg)

```
[![Health](https://phpackages.com/badges/clarkwinkelmann-flarum-ext-roll-die/health.svg)](https://phpackages.com/packages/clarkwinkelmann-flarum-ext-roll-die)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[fof/byobu

Well integrated, advanced private discussions.

59120.6k13](/packages/fof-byobu)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k4](/packages/fof-discussion-language)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[fof/gamification

Upvotes and downvotes for your Flarum community

4066.1k8](/packages/fof-gamification)[fof/best-answer

Mark a post as the best answer in a discussion

25154.0k20](/packages/fof-best-answer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
