azul / numbers_words
Allows to use Numbers_Words library in symfony with : french, english ans spanish
Installs: 4 857
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 58
pkg:composer/azul/numbers_words
Requires
- php: >=5.3.2
This package is auto-updated.
Last update: 2025-09-29 01:43:35 UTC
README
This library allows you converts numbers to words with no intl php extension
Installation
Download Numbers_Words Library using composer
Add Numbers_Words by running the command:
$ php composer.phar require azul/numbers_words "dev-master"
Or by adding this line to your composer.json file And run composer.phar update
// "azul/numbers_words":"dev-master" //
Composer will install the library to your project's vendor/azul
directory.
Using Numbers_Words Library
Convert integer
<?php // In Controller $numbers_words = new Word(); $word = $numbers_words->toWords(12378 /**Number**/, 'en'/**locale**/) // Output : twelve thousand three hundred seventy-eight // Available locales : fr, en, es
Convert money ammount
<?php // In Controller $numbers_words = new Word(); $word = $numbers_words->toCurrency('123,56'/**Ammount**/, 'en'/**Locale**/, 'EUR'/**Currency**/, ','/**Decimal Point**/); // Output : cent vingt-trois euros cinquante-six centimes // Available locales : fr, en, es