PHP code example of kucharovic / czech-money-to-words
1. Go to this page and download the library: Download kucharovic/czech-money-to-words library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kucharovic / czech-money-to-words example snippets
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éřů