Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1021 Bytes

README.md

File metadata and controls

60 lines (47 loc) · 1021 Bytes

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