inquid / yii-en-letras
Convierte un número a letras
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-11-29 05:44:54 UTC
README
Convierte un número a letras
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist inquid/yii-en-letras "*"
or add
"inquid/yii-en-letras": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
$letras = EnLetras::convertir(12345);
Si deseas convertir un número con decimales y mostrar la moneda:
$letras = EnLetras::convertir(12345.67, 'colones', 'centimos');
Lo cual te devuelve: DOCE MIL TRESCIENTOS CUARENTA Y CINCO COLONES CON SESENTA Y SIETE CENTIMOS