PHP component to convert numbers to words
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Module.php
NumberToWords.php
README.md
composer.json

README.md

NFNumberToWord

This component provides a means to convert numberic number (e.g. 1023) to a string of works (e.g. one thousand and twenty three). It also provides a zend-view helper called numberToWord.

Installation with Composer

$ composer require "nineteenfeet/nf-number-to-word"

Usage

use NFNumberToWord\NumberToWords;

$number = 1999;

$numberToWords = new NumberToWords();
$string = $numberToWords->toWords($number);