{"id":15700030,"url":"https://github.com/bnomei/kirby3-random","last_synced_at":"2026-01-13T22:46:02.531Z","repository":{"id":37549195,"uuid":"142142922","full_name":"bnomei/kirby3-random","owner":"bnomei","description":"Kirby Tag and Page Method to generate various random values","archived":true,"fork":false,"pushed_at":"2024-11-23T17:27:56.000Z","size":117,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-01T11:43:12.243Z","etag":null,"topics":["between","crypo","kirby3","kirby3-cms","kirby3-plugin","lorem-ipsum","number","pool","random","secure","string"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bnomei.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bnomei","patreon":"bnomei","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://buymeacoff.ee/bnomei","https://paypal.me/bnomei"]}},"created_at":"2018-07-24T10:27:50.000Z","updated_at":"2024-11-23T19:10:48.000Z","dependencies_parsed_at":"2024-10-24T04:54:56.456Z","dependency_job_id":"4321ba5b-8491-4545-99ae-213cf494b34a","html_url":"https://github.com/bnomei/kirby3-random","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.19512195121951215","last_synced_commit":"0cd8ad08be35429f71c89d1ef1c2c7fa72d671ff"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/bnomei/kirby3-random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnomei","download_url":"https://codeload.github.com/bnomei/kirby3-random/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-random/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["between","crypo","kirby3","kirby3-cms","kirby3-plugin","lorem-ipsum","number","pool","random","secure","string"],"created_at":"2024-10-03T19:44:31.314Z","updated_at":"2026-01-13T22:46:02.516Z","avatar_url":"https://github.com/bnomei.png","language":"PHP","funding_links":["https://github.com/sponsors/bnomei","https://patreon.com/bnomei","https://buymeacoff.ee/bnomei","https://paypal.me/bnomei"],"categories":[],"sub_categories":[],"readme":"# Kirby Random\n\n![Release](https://flat.badgen.net/packagist/v/bnomei/kirby3-random?color=ae81ff)\n![Downloads](https://flat.badgen.net/packagist/dt/bnomei/kirby3-random?color=272822)\n[![Build Status](https://flat.badgen.net/travis/bnomei/kirby3-random)](https://travis-ci.com/bnomei/kirby3-random)\n[![Coverage Status](https://flat.badgen.net/coveralls/c/github/bnomei/kirby3-random)](https://coveralls.io/github/bnomei/kirby3-random) \n[![Maintainability](https://flat.badgen.net/codeclimate/maintainability/bnomei/kirby3-random)](https://codeclimate.com/github/bnomei/kirby3-random) \n[![Twitter](https://flat.badgen.net/badge/twitter/bnomei?color=66d9ef)](https://twitter.com/bnomei)\n\n\nKirby Tag and Page Method to generate various random values.\n\n## Installation\n\n- unzip [master.zip](https://github.com/bnomei/kirby3-random/archive/master.zip) as folder `site/plugins/kirby3-random` or\n- `git submodule add https://github.com/bnomei/kirby3-random.git site/plugins/kirby3-random` or\n- `composer require bnomei/kirby3-random`\n\n## Usage\n\n| Regex/Info | Kirbytag | Page-Method | Static |\n|-------|----------|-------------|--------|\n| `[0-9]{1,3}` | `(random: 999 generator: number)` | `$page-\u003erandom(999)` | `Random::number(0, 999)` |\n| `[0-9]{1}` | `(random: 0, 9 generator: between)` | `$page-\u003erandom([0, 9], 'between')` | `Random::between([0, 9])` |\n| `(\\d\\w){5,10}` | `(random:)` | `$page-\u003erandom()` | `Random::string()` |\n| `\\d{5}` | `(random: 5 generator: num)` | ` $page-\u003erandom(5, 'num')` | `Random::string(5, 'num')` |\n| `(apple OR banana OR coconut)` | `(random: apple, banana, coconut generator: pick)` | `$page-\u003erandom('apple, banana, coconut', 'pick')` | `Random::pick(['apple', 'banana', 'coconut'])` |\n| `5 chars` | `(random: chars generator: lorem length: 5)` | `$page-\u003erandom('chars', 'lorem', 5)` | `Random::lorem(5, 'chars')` |\n| `5 words` | `(random: words generator: lorem length: 5)` | `$page-\u003erandom('words', 'lorem', 5)` | `Random::lorem(5, 'words')` |\n| `5 sentences` | `(random: sentences generator: lorem length: 5)` | `$page-\u003erandom('sentences', 'lorem', 5)` | `Random::lorem(5, 'sentences')` |\n| `5 [paragaph PHP_EOL PHP_EOL]` | `(random: paragraphs generator: lorem length: 5)` | `$page-\u003erandom('paragraphs', 'lorem', 5)` | `Random::lorem(5, 'paragraphs')` |\n| `[a-zA-Z0-9]{40}` | `(random: generator: token)` | ` $page-\u003erandom(null, 'token')` | `Random::token()` |\n| `[A-Z0-9]{12}` | `(random: alphaupper, num generator: token length: 12)` | ` $page-\u003erandom('alphaupper, num', 'token', 12)` | `Random::token(12, 'alphaupper, num')` |\n\n\u003e Markdown tables do not allow `|` in regex so i wrote ` OR ` instead.\n\u003e 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.\n\n## Dependencies\n\n- [joshtronic/php-loremipsum](https://github.com/joshtronic/php-loremipsum)\n\n## Disclaimer\n\nThis 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).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nIt is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnomei%2Fkirby3-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnomei%2Fkirby3-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnomei%2Fkirby3-random/lists"}