2017 © Pedro Peláez
 

library n2w

PHP Library for Spelling Numbers into Words. Give it an integer value like 50, and it returns the words Fifty

image

chitwarnold/n2w

PHP Library for Spelling Numbers into Words. Give it an integer value like 50, and it returns the words Fifty

  • Tuesday, July 11, 2017
  • by chitwarnold
  • Repository
  • 1 Watchers
  • 2 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP Number to Words By Gomersol Technologies (http://gomersol.com)

This library will allows you to spell various numeric values from 0 to 999,999,999,999.00 in the various languages. For now the library is only supporting the English Language. In the next few monts we hope to add support for Swahili,French, German, Spanish., (*1)

The library was prepared to help with displaying the spelling of various numbers when printing on cheques. Please highlight other use cases on the comments and submits any issues you get while using this library. Godspeed., (*2)

For license information check the LICENSE-file., (*3)

joke If only president Zuma has his speech writers using this class, the whole President Zuma ANC Numbers Challenge Would not have happenned.lol, (*4)

You can also access some of my other repositories on my Packagist Profile., (*5)

Installation

The preferred way to install this library is through composer., (*6)

Either run, (*7)

composer require chitwarnold/n2w

or add, (*8)

"chitwarnold/ais": "~1.0.4",

to the require section of your composer.json., (*9)

Demonstration

#import the libraries
use chitwarnold\n2w\en\N2w;
use chitwarnold\n2w\en\readers\N2wReaders;


# get some spellcheck done
$_spelling_bee = new N2w();
$decimal_point  = 2;
$start = 100;
$stop = 200;
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++".PHP_EOL;
echo "| Range Counting challenge From $start to $stop |".PHP_EOL;
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++".PHP_EOL;


for($i = $start; $i <= $stop; $i++)
{
    $spell = $_spelling_bee->updateChallenge($i,$decimal_point)->spell();
    echo "$i."." ".$spell.PHP_EOL;
}

The Versions

11/07 2017

dev-master

9999999-dev

PHP Library for Spelling Numbers into Words. Give it an integer value like 50, and it returns the words Fifty

  Sources   Download

BSD

The Requires

  • php >=5.6.0

 

by Arnold Chitwa Astrill

11/07 2017

1.0.4

1.0.4.0

PHP Library for Spelling Numbers into Words. Give it an integer value like 50, and it returns the words Fifty

  Sources   Download

BSD

The Requires

  • php >=5.6.0

 

by Arnold Chitwa Astrill

20/06 2017

1.0.0

1.0.0.0

PHP Library for Spelling Numbers into Words. Give it an integer value like 50, and it returns the words Fifty

  Sources   Download

BSD

The Requires

  • php >=5.6.0

 

by Arnold Chitwa Astrill