====== Numbers_Words ======
With Numbers_Words class you can convert numbers written in arabic digits to words in several languages. You can convert an integer between -infinity and infinity.
If your system does not support such long numbers you can call Numbers_Words::toWords() with just a string.
http://pear.php.net/package/Numbers_Words
===== Maintainer =====
kouber
===== Overview of Code =====
Numbers_Words is a bit of an older package, aimed at PHP4. There are many different contributors to small sections of the package (each driver).
There has been a tendency to [[http://pear.php.net/bugs/bug.php?id=15146|copy and paste much code]] when implementing a new language; because of there being so many contributors.
The code is not E_STRICT friendly, with [[http://pear.php.net/bugs/bug.php?id=12512|a number of methods overriding the base class method ''toWords()'']] all with different signatures.
There is [[http://pear.php.net/bugs/bug.php?id=15149|low-medium unit test coverage]], of the Spanish, Polish, French, English, German translators.
===== Help wanted =====
==== Unit tests ====
Do you speak any of:
* Bulgarian
* Czech
* Danish
* Donald Knuth system, English
* British English
* American English
* Spanish
* Polish
* Argentinian Spanish
* Estonian
* French
* French Belgium
* German
* Hebrew
* Hungarian
* Indonesian
* Italian
* Lithuanian
* Dutch
* Brazilian Portuguese
* Russian
* Swedish
Then help out with [[http://pear.php.net/bugs/bug.php?id=15149|Unit test coverage]]. I'm targetting PHPUnit 3, and if you need an example; start from [[http://cvs.php.net/viewvc.cgi/pear/Numbers_Words/tests/]]
===== Used by =====
* [[Date]]
* [[HTML_Table_Matrix]]
* [[Image_Graph]]
* [[Text_CAPTCHA]]