Extensions to convert numbers into text in rupiah (Terbilang dalam Rupiah).
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dickyermawan/yii2-terbilang-rupiah "~1.0"
or add
"dickyermawan/yii2-terbilang-rupiah": "~1.0"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= \dickyermawan\terbilang\Rupiah::terbilang(5500); ?> // Lima Ribu Lima Ratus
Comments