PHP code example of devtarekmia / spell-money
1. Go to this page and download the library: Download devtarekmia/spell-money 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/ */
devtarekmia / spell-money example snippets
use TarekMia\SpellMoney\SpellMoney;
$spellMoney = new SpellMoney();
$spellMoney->spell(4586); // four thousand five hundred and eighty six taka
$spellMoney->spell(25.85); // twenty five taka and eighty five paisa
// example of big values
$spellMoney->spell(548752154836.52); // eight hundred seventy five crore twenty one lakh fifty four thousand eight hundred thirty six taka and fifty two paisa