mrvito / textify
Convert numbers and currency to a readable text
v1.0.1
2018-12-11 21:10 UTC
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2025-07-04 00:59:38 UTC
README
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