/czech-money-to-words

Simple utility to convert a number into a czech currency word representation.

Primary LanguagePHP

MoneyToWords

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éřů