nahid940/number-to-words

Convert numbers into words

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nahid940/number-to-words

v1.1 2020-02-22 16:09 UTC

This package is auto-updated.

Last update: 2025-11-29 02:50:45 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).