Skip to content

saaiful/number-to-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

number-to-word

এটি একটি পিএইচপি ক্লাস যা সংখ্যাকে কথায় পরিনত করে।

Live Demo/এখানে ডেমো দেখুন

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();

About

Numbers to Words Converter (Bangla)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages