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
Requires
- getkirby/composer-installer: ^1.1
- wandersonwhcr/romans: ^1.3
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