PHP code example of tnkemdilim / money-to-words-converter
1. Go to this page and download the library: Download tnkemdilim/money-to-words-converter 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/ */
tnkemdilim / money-to-words-converter example snippets
use TNkemdilim\MoneyToWords\Converter;
use TNkemdilim\MoneyToWords\Languages as Language;
$converter = new Converter("naira", "kobo", Language::FRENCH);
echo ($converter->convert(23.45));
echo ($converter->convert("748247284782"));
// Chinese numeric system
$money = "八百七十二万七千八百二十四";
// Example 1
$converter = new Converter("yen", "sen");
echo ($converter->convert($money));
// Example 2: but convert money value to french
$frenchConverter = new Converter("yen", "sen", Language::FRENCH);
echo ($frenchConverter->convert("八百七十二万七千八百二十四"));
use TNkemdilim\MoneyToWords\Languages as Language;
$converter->setLanguage(Language::LATIN);
$converter->setLanguage(Language::SWAHILI);
$converter->setLanguage(Language::GREEK);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.