nahid940 / number-to-words
Convert numbers into words
v1.1
2020-02-22 16:09 UTC
This package is auto-updated.
Last update: 2025-05-29 01:08:07 UTC
README
Convert numbers into words easily.
Features
- Faster and light weight.
- Easy to use.
- Compatible with any php based projects.
Requirements
- PHP Version 5.5+
Easy Installation
- Run the command
composer require nahid940/number-to-words
- autoload file
require 'vendor/autoload.php'
Usage
- include the autoload file in your PHP file.
- Instantiate the object of the NumberToWords Class.
use NumberToWords\NumberToWords; $nnumber_to_words=new NumberToWords();
- Call the function
$nnumber_to_words->convertToWords(number,currency);
- Pass two parameters in the function
convertToWords(number,currency)
- First one is the number you want to convert and another is the currency name (BDT, RUPEE).