ZF2 view helper to convert a number into its word representation. e.g. 1 => one

1.1.1 2017-12-21 15:22 UTC

This package is auto-updated.

Last update: 2021-11-04 19:13:07 UTC


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"


use NFNumberToWord\NumberToWords;

$number = 1999;

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