Skip to content

amirsanni/number-to-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

number-to-words

A PHP library for converting numbers (figures) to words in specified currency code.

Installation

composer require amirsanni/number-to-words

Supported Currency Codes

AED, AFN, ANG, ARS, AUD, BRL, CAD, CHF, CNY, DKK, DZD, EGP, EUR, GBP, GHC, GHS, HKD, ILS, INR, IQD, IRR, JMD, JOD, JPY, KES, KPW, KRW, KWD, LYD, MXN, MAD, MUR, NGN, NZD, PEN, PHP, PYG, QAR, RON, RSD, RUB, RWF, SAR, SDG, SEK, SGD, SHP, SYP, THB, TND, TRY, TWD, UGX, USD, VES, XAF, XCD, XOF, XPF, YER, ZAR.

Test

$obj = new NumberToWords();

echo $obj->convert(3490948028.56, "NGN");

Displays Three Billion, Four Hundred and Ninety Million, Nine Hundred and Forty-Eight Thousand, and Twenty-Eight Naira, Fifty-Six Kobo.

About

A simple PHP library for converting figures to words.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages