Skip to content

Convert numbers and currency to a readable text

License

Notifications You must be signed in to change notification settings

VytautasLozickas/textify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textify

Convert numbers and currency to a readable text

Installation

Just require the package from composer: require mrvito/textify

Usage

Create an instance of NumberToText class from a correct namespace for your language i.e. for english:

use MrVito\Textify\en_US\NumberToText;
$numberToText = NumberToText::getInstance();

And just use the method you want...:

$text = $numberToText->getText(123);

echo $text;

Outputs:

one hundred and twenty three

About

Convert numbers and currency to a readable text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%