saaiful / number-to-word
Numbers to Words Converter (Bangla)
0.0.4
2023-10-08 13:12 UTC
Requires
- php: >=5.5.0
Requires (Dev)
- phpunit/phpunit: ^4.8 || ^5.0
This package is auto-updated.
Last update: 2025-03-17 12:51:05 UTC
README
এটি একটি পিএইচপি ক্লাস যা সংখ্যাকে কথায় পরিনত করে।
Installation
composer require saaiful/number-to-word
or
{
"require": {
"saaiful/bangla-number-word": "0.*"
}
}
Usage
... 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);
Without Composer
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();