moevbiz/k3-romans

Kirby 3 Romans

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:kirby-plugin

v1.0.0 2021-10-05 13:54 UTC

This package is auto-updated.

Last update: 2025-03-25 23:16:28 UTC


README

Kirby CMS wrapper around wandersonwhcr/romans, A Simple PHP Roman Numerals Library

Install

composer require moevbiz/k3-romans

Usage

As a field method:

<?= $page->currentYear()->intToRoman(); ?> // MMXXI
<?= $page->title()->romanToInt(); ?> // 2021

As a page method:

<?= $page->intToRoman(2021); ?> // MMXXI
<?= $page->romanToInt(MMXXI); ?> // 2021

License

Plugin: MIT

Kirby: Buy