Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 474 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 474 Bytes

NFNumberToWord

This component provides a means to convert numeric number (e.g. 1023) to a string of works (e.g. one thousand and twenty three). It also provides a laminas-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);