এটি একটি পিএইচপি ক্লাস যা সংখ্যাকে কথায় পরিনত করে।
composer require saaiful/number-to-word
or
{
"require": {
"saaiful/bangla-number-word": "0.*"
}
}
...
require 'vendor/autoload.php';
use Saaiful\NumberToWord\Word;
$bangla = new Word(324650);
echo $bangla->word();
or
...
require 'vendor/autoload.php';
use Saaiful\NumberToWord\Word;
$bangla = new Word('-১২৩');
echo $bangla->word();
or
...
require 'vendor/autoload.php';
echo n2w($number);
Download Word.php
and helper.php
from the repo and save the file into your project path somewhere.
<?php
require 'path/to/Word.php';
require 'path/to/helper.php';
use Saaiful\NumberToWord\Word;
$bangla = new Word('-১২৩');
echo $bangla->word();