kucharovic/czech-money-to-words

Utility to convert a number to a CZK currency word representation.

v2.0.0 2019-08-13 11:56 UTC

This package is auto-updated.

Last update: 2024-05-13 22:18:46 UTC


README

Utility to convert a number to a CZK currency word representation.

Installation with Composer

php composer require kucharovic/czech-money-to-words

Usage

<?php
require __DIR__.'/vendor/autoload.php';

use JK\Utils\MoneyToWords;

$formatter = new MoneyToWords();

echo $formatter->spellout(123); // jednostodvacettři korun českých
echo $formatter->spellout(21.5, MoneyToWords::PRESERVE_SPACES); // dvacet jedna korun českých padesát haléřů