PHP code example of gsazad / rupeestowords

1. Go to this page and download the library: Download gsazad/rupeestowords library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gsazad / rupeestowords example snippets


$rupeesToWords = new Rupeestowords();
$num = 1234.56;

echo $rupeesToWords->convert($num); // Output: one thousand two hundred thirty four rupees and fifty six paise

echo $rupeesToWords->convert($num, 'pa'); // Output: ਇੱਕ ਹਜ਼ਾਰ ਦੋ ਸੌ ਚੌਂਤੀ ਰੁਪਏ ਅਤੇ ਛਪਿੰਜਾ ਪੈਸੇ

echo $rupeesToWords->convert($num, 'hi'); // Output: एक हजार दो सौ चौंतीस रुपये और छप्पन पैसे

echo $rupeesToWords->convert($num, 'gu'); //એક હજાર બે સો ચોત્રીસ રૂપિયા અને છપ્પન પૈસા