mrvito / textify
Convert numbers and currency to a readable text
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mrvito/textify
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2025-12-19 03:09:23 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