PHPackages                             bnomei/kirby3-random - 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. bnomei/kirby3-random

AbandonedArchivedKirby-plugin[Utility &amp; Helpers](/categories/utility)

bnomei/kirby3-random
====================

Kirby Tag and Page Method to generate various random values

3.0.2(3y ago)6186[1 PRs](https://github.com/bnomei/kirby3-random/pulls)MITPHPPHP &gt;=8.0

Since Jul 24Pushed 1y agoCompare

[ Source](https://github.com/bnomei/kirby3-random)[ Packagist](https://packagist.org/packages/bnomei/kirby3-random)[ RSS](/packages/bnomei-kirby3-random/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (18)Used By (0)

Kirby Random
============

[](#kirby-random)

[![Release](https://camo.githubusercontent.com/dda33778e14b502c25fb7fe431dfaf3e0b2ed3e9404d5b5aa733b9cdb8ce7302/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d72616e646f6d3f636f6c6f723d616538316666)](https://camo.githubusercontent.com/dda33778e14b502c25fb7fe431dfaf3e0b2ed3e9404d5b5aa733b9cdb8ce7302/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d72616e646f6d3f636f6c6f723d616538316666)[![Downloads](https://camo.githubusercontent.com/b620ccdf015adc4e727c83af0df4d5fc548823ca9225bc532f7169e4130901c3/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b69726279332d72616e646f6d3f636f6c6f723d323732383232)](https://camo.githubusercontent.com/b620ccdf015adc4e727c83af0df4d5fc548823ca9225bc532f7169e4130901c3/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b69726279332d72616e646f6d3f636f6c6f723d323732383232)[![Build Status](https://camo.githubusercontent.com/c1df451507848977b7b5df7757e0543b37bb4b5dcf738d343d93e954527bb43e/68747470733a2f2f666c61742e62616467656e2e6e65742f7472617669732f626e6f6d65692f6b69726279332d72616e646f6d)](https://travis-ci.com/bnomei/kirby3-random)[![Coverage Status](https://camo.githubusercontent.com/0b40407a2d23cfccbb724a46ae09ddf56d64d9689368bf45aea140d5c28566db/68747470733a2f2f666c61742e62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f626e6f6d65692f6b69726279332d72616e646f6d)](https://coveralls.io/github/bnomei/kirby3-random)[![Maintainability](https://camo.githubusercontent.com/f4e08cfe7a8c60a82c106013abae18ac638abcfe900e335531847ed6fcf95769/68747470733a2f2f666c61742e62616467656e2e6e65742f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f626e6f6d65692f6b69726279332d72616e646f6d)](https://codeclimate.com/github/bnomei/kirby3-random)[![Twitter](https://camo.githubusercontent.com/b90e4b58a887e8ad09ec267628b75199a48522a9e01e88b129e5d2d730dffe50/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f747769747465722f626e6f6d65693f636f6c6f723d363664396566)](https://twitter.com/bnomei)

Kirby Tag and Page Method to generate various random values.

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

[](#installation)

- unzip [master.zip](https://github.com/bnomei/kirby3-random/archive/master.zip) as folder `site/plugins/kirby3-random` or
- `git submodule add https://github.com/bnomei/kirby3-random.git site/plugins/kirby3-random` or
- `composer require bnomei/kirby3-random`

Usage
-----

[](#usage)

Regex/InfoKirbytagPage-MethodStatic`[0-9]{1,3}``(random: 999 generator: number)``$page->random(999)``Random::number(0, 999)``[0-9]{1}``(random: 0, 9 generator: between)``$page->random([0, 9], 'between')``Random::between([0, 9])``(\d\w){5,10}``(random:)``$page->random()``Random::string()``\d{5}``(random: 5 generator: num)`` $page->random(5, 'num')``Random::string(5, 'num')``(apple OR banana OR coconut)``(random: apple, banana, coconut generator: pick)``$page->random('apple, banana, coconut', 'pick')``Random::pick(['apple', 'banana', 'coconut'])``5 chars``(random: chars generator: lorem length: 5)``$page->random('chars', 'lorem', 5)``Random::lorem(5, 'chars')``5 words``(random: words generator: lorem length: 5)``$page->random('words', 'lorem', 5)``Random::lorem(5, 'words')``5 sentences``(random: sentences generator: lorem length: 5)``$page->random('sentences', 'lorem', 5)``Random::lorem(5, 'sentences')``5 [paragaph PHP_EOL PHP_EOL]``(random: paragraphs generator: lorem length: 5)``$page->random('paragraphs', 'lorem', 5)``Random::lorem(5, 'paragraphs')``[a-zA-Z0-9]{40}``(random: generator: token)`` $page->random(null, 'token')``Random::token()``[A-Z0-9]{12}``(random: alphaupper, num generator: token length: 12)`` $page->random('alphaupper, num', 'token', 12)``Random::token(12, 'alphaupper, num')`> Markdown tables do not allow `|` in regex so i wrote `OR` instead. For all random numbers the cryptographically safe PHP 7 function `rand_int` is used. `Bnomei\Random` can be used as `Random` if `use Bnomei\Random;` is included at the head of the PHP script.

Dependencies
------------

[](#dependencies)

- [joshtronic/php-loremipsum](https://github.com/joshtronic/php-loremipsum)

Disclaimer
----------

[](#disclaimer)

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please [create a new issue](https://github.com/bnomei/kirby3-random/issues/new).

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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

Every ~106 days

Recently: every ~349 days

Total

16

Last Release

1254d ago

Major Versions

2.3.3 → 3.0.02019-08-27

PHP version history (3 changes)2.2.6PHP &gt;=7.1.0

3.0.0PHP &gt;=7.2.0

3.0.2PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3265642?v=4)[Bruno Meilick](/maintainers/bnomei)[@bnomei](https://github.com/bnomei)

---

Top Contributors

[![bnomei](https://avatars.githubusercontent.com/u/3265642?v=4)](https://github.com/bnomei "bnomei (42 commits)")

---

Tags

betweencrypokirby3kirby3-cmskirby3-pluginlorem-ipsumnumberpoolrandomsecurestringrandomstringcryptosecureLorem ipsumpoolnumberkirby3kirby3-pluginkirby3-cmsbetween

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bnomei-kirby3-random/health.svg)

```
[![Health](https://phpackages.com/badges/bnomei-kirby3-random/health.svg)](https://phpackages.com/packages/bnomei-kirby3-random)
```

###  Alternatives

[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[fabianmichael/kirby-meta

Your all-in-one powerhouse for any SEO and metadata needs imaginable.

6910.7k1](/packages/fabianmichael-kirby-meta)[arnoson/kirby-vite

Vite helper for Kirby CMS

9759.2k3](/packages/arnoson-kirby-vite)[hallindavid/manny

a package of manipulators that hopefully come in useful for those of us who always forget regex when we need it (manny is short for manipulation)

38103.3k2](/packages/hallindavid-manny)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.0k](/packages/bvdputte-kirby-fingerprint)[schnti/cachebuster

A plugin for Kirby 3 CMS to add modification timestamps to css and js files

108.3k1](/packages/schnti-cachebuster)

PHPackages © 2026

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