1. Go to this page and download the library: Download rakibhstu/number-to-bangla 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/ */
use Rakibhstu\Banglanumber\NumberToBangla;
$numto = new NumberToBangla();
// If you want to convert any number (Integer of Float) into Bangla Word
$text = $numto->bnWord(13459); // Output: তেরো হাজার চার শত ঊনষাট
$text = $numto->bnWord(1345.05); // Output: এক হাজার তিন শত পঁয়তাল্লিশ দশমিক শূন্য পাঁচ
// Integer
$text = $numto->bnWord(13459); // Output: তেরো হাজার চার শত ঊনষাট
// Float
$text = $numto->bnWord(1345.05); // Output: এক হাজার তিন শত পঁয়তাল্লিশ দশমিক শূন্য পাঁচ
$text = $numto->bnWord(345675.105); // Output: তিন লক্ষ পঁয়তাল্লিশ হাজার ছয় শত পঁচাত্তর দশমিক এক শূন্য পাঁচ
$text = $numto->bnMoney(13459); // Output: তেরো হাজার চার শত ঊনষাট টাকা
$text = $numto->bnMoney(13459.05); // Output: তেরো হাজার চার শত ঊনষাট টাকা পাঁচ পয়সা
$text = $numto->bnMoney(13459.5); // Output: তেরো হাজার চার শত ঊনষাট টাকা পঞ্চাশ পয়সা