dev-master
9999999-devThis bundle allows to convert numbers to words
MIT
The Requires
- php >=5.5.0
- symfony/framework-bundle >=2.1.0,<=3.0
by Massil Korichi
by Celvin Rivas
symfony2 translate numbers words
This bundle allows to convert numbers to words
This is one improved edition of https://github.com/massil31/NumbersToWordsBundle, (*1)
Hopefully compatible with Symfony 2 and 3, (*2)
Installation:, (*3)
pear install Numbers_Words
If there are some trubles about the version you can use: pear install channel://pear.php.net/Numbers_Words-0.18.1, (*4)
composer require celvin/numbers-to-words-bundle
composer require celvin/numbers-to-words-bundle dev-master
new celvin\NumbersToWordsBundle\celvinNumbersToWordsBundle(),
use celvin\NumbersToWordsBundle\Numbers_Words\Numbers\Words;
$numbers_words = new Words(); $word = $numbers_words->toWords("12378" /**Number**/, 'es'/**locale**/);
Convert money ammount, (*5)
<?php // In Controller $numbers_words = new Word();, (*6)
$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
This bundle allows to convert numbers to words
MIT
symfony2 translate numbers words