nineteenfeet/nf-number-to-word

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

Installs: 36

Dependents: 0

Stars: 1

Watchers: 1

Language: PHP

1.0.1 2014-12-04 12:08 UTC

README

This ZF2 module provides a view helper called numberToWord which will format a numberic number (e.g. 1023) as a word (e.g. one thousand and twenty three).

Installation with Composer

  1. Add "nineteenfeet/nf-number-to-word": "1.*" to your composer.json file and run php composer.phar update.
  2. Add 'NFNumberToWord' to your list of modules in application.config.php.

Usage

In your view script:

<?php echo $this->numberToWord(1234, $titleCase = true); ?>